1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 pytestCheckHook,
6 libxslt,
7 libxml2,
8 libtool,
9 pkg-config,
10 xmlsec,
11 pkgconfig,
12 setuptools-scm,
13 lxml,
14 hypothesis,
15}:
16
17buildPythonPackage rec {
18 pname = "xmlsec";
19 version = "1.3.14";
20 format = "pyproject";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-k0+ATy+JW824bx6u4ja2YQE1YO5p7BCNKc3W5fKSotk=";
25 };
26
27 nativeBuildInputs = [
28 pkg-config
29 pkgconfig
30 setuptools-scm
31 ];
32
33 buildInputs = [
34 xmlsec
35 libxslt
36 libxml2
37 libtool
38 ];
39
40 propagatedBuildInputs = [ lxml ];
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 hypothesis
45 ];
46
47 disabledTestPaths = [
48 # Full git clone required for test_doc_examples
49 "tests/test_doc_examples.py"
50 # test_reinitialize_module segfaults python
51 # https://github.com/mehcode/python-xmlsec/issues/203
52 "tests/test_xmlsec.py"
53 ];
54
55 pythonImportsCheck = [ "xmlsec" ];
56
57 meta = with lib; {
58 description = "Python bindings for the XML Security Library";
59 homepage = "https://github.com/mehcode/python-xmlsec";
60 license = licenses.mit;
61 maintainers = with maintainers; [ zhaofengli ];
62 };
63}