depot/third_party/nixpkgs/pkgs/development/python-modules/signxml/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

57 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, certifi
, cryptography
, fetchFromGitHub
, lxml
, pyopenssl
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "signxml";
version = "3.2.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "XML-Security";
repo = "signxml";
rev = "refs/tags/v${version}";
hash = "sha256-TlOIHYvx1o46nr/3qq45pgeOqmuyWaaTGvOS0Jwz1zs=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
certifi
cryptography
lxml
pyopenssl
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"signxml"
];
pytestFlagsArray = [
"test/test.py"
];
meta = with lib; {
description = "Python XML Signature and XAdES library";
homepage = "https://github.com/XML-Security/signxml";
changelog = "https://github.com/XML-Security/signxml/blob/${src.rev}/Changes.rst";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}