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