depot/third_party/nixpkgs/pkgs/development/python-modules/securetar/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

47 lines
900 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "securetar";
version = "2023.12.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "pvizeli";
repo = "securetar";
rev = "refs/tags/${version}";
hash = "sha256-P8aq1RRlEmXhJ4n0TSLVjYx4dvkckuz2aDGkAvp7bfo=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
cryptography
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"securetar"
];
meta = with lib; {
description = "Module to handle tarfile backups";
homepage = "https://github.com/pvizeli/securetar";
changelog = "https://github.com/pvizeli/securetar/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}