52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
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
|
|
];
|
|
|
|
patches = [
|
|
# NOTE: This is the same patch file as Fix-compat-with-current-cryptography.patch
|
|
# from the pgpy packaging, with the base directory modified for pgpy-dtc.
|
|
# https://github.com/SecurityInnovation/PGPy/pull/474
|
|
./Fix-compat-with-current-cryptography.patch
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|