Files
nixpkgs/pkgs/development/python-modules/signxml/default.nix
2025-06-18 14:38:54 +00:00

55 lines
1019 B
Nix

{
lib,
buildPythonPackage,
certifi,
cryptography,
fetchFromGitHub,
lxml,
pyopenssl,
pytestCheckHook,
pythonOlder,
hatchling,
hatch-vcs,
}:
buildPythonPackage rec {
pname = "signxml";
version = "4.0.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "XML-Security";
repo = "signxml";
tag = "v${version}";
hash = "sha256-dO7erKXyX/3qwWVC1laABOb+0yAkCy51rrnG1opL6pY=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
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 ];
};
}