depot/third_party/nixpkgs/pkgs/development/python-modules/securetar/default.nix

40 lines
871 B
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "securetar";
version = "2024.11.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "pvizeli";
repo = "securetar";
rev = "refs/tags/${version}";
hash = "sha256-h0GubDuwINDNfDxBVJv74yu/OnzMasq5f0lPoIrNNCA=";
};
build-system = [ setuptools ];
dependencies = [ 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 ];
};
}