2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
pytestCheckHook,
|
|
|
|
libxslt,
|
|
|
|
libxml2,
|
|
|
|
libtool,
|
|
|
|
pkg-config,
|
|
|
|
xmlsec,
|
|
|
|
pkgconfig,
|
|
|
|
setuptools-scm,
|
|
|
|
lxml,
|
|
|
|
hypothesis,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xmlsec";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.3.14";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "pyproject";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-k0+ATy+JW824bx6u4ja2YQE1YO5p7BCNKc3W5fKSotk=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
pkgconfig
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
xmlsec
|
|
|
|
libxslt
|
|
|
|
libxml2
|
|
|
|
libtool
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ lxml ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
hypothesis
|
|
|
|
];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
disabledTestPaths = [
|
2022-06-16 17:23:12 +00:00
|
|
|
# Full git clone required for test_doc_examples
|
2022-04-15 01:41:22 +00:00
|
|
|
"tests/test_doc_examples.py"
|
|
|
|
# test_reinitialize_module segfaults python
|
|
|
|
# https://github.com/mehcode/python-xmlsec/issues/203
|
|
|
|
"tests/test_xmlsec.py"
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
pythonImportsCheck = [ "xmlsec" ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for the XML Security Library";
|
|
|
|
homepage = "https://github.com/mehcode/python-xmlsec";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zhaofengli ];
|
|
|
|
};
|
|
|
|
}
|