blob: ff2003f86fc1f39ba161542a692d3beef840a502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
certifi,
cryptography,
fetchFromGitHub,
lxml,
pyopenssl,
pytestCheckHook,
hatchling,
hatch-vcs,
}:
buildPythonPackage rec {
pname = "signxml";
version = "4.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "XML-Security";
repo = "signxml";
tag = "v${version}";
hash = "sha256-oyDhJZVn08rIcR3ti9jsYxyBPgz6VaJSbBVYrTQkbVU=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
certifi
cryptography
lxml
pyopenssl
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "signxml" ];
enabledTestPaths = [ "test/test.py" ];
meta = {
description = "Python XML Signature and XAdES library";
homepage = "https://github.com/XML-Security/signxml";
changelog = "https://github.com/XML-Security/signxml/blob/${src.tag}/Changes.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|