Files
nixpkgs/pkgs/development/python-modules/pgpy-dtc/default.nix
2025-02-14 13:14:08 +01:00

45 lines
917 B
Nix

{
lib,
pythonOlder,
fetchFromGitHub,
buildPythonPackage,
setuptools,
pyasn1,
cryptography,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pgpy-dtc";
version = "0.1.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "DigitalTrustCenter";
repo = "PGPy_dtc";
tag = version;
hash = "sha256-0zv2gtgp/iGDQescaDpng1gqbgjv7iXFvtwEt3YIPy4=";
};
build-system = [ setuptools ];
dependencies = [
pyasn1
cryptography
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pgpy_dtc" ];
meta = {
homepage = "https://github.com/DigitalTrustCenter/PGPy_dtc";
changelog = "https://github.com/DigitalTrustCenter/PGPy_dtc/releases/tag/${src.tag}";
description = "Pretty Good Privacy for Python";
license = lib.licenses.eupl12;
maintainers = with lib.maintainers; [ networkexception ];
};
}