2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytestCheckHook
|
|
|
|
, libxslt
|
|
|
|
, libxml2
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, xmlsec
|
|
|
|
, pkgconfig
|
|
|
|
, setuptools-scm
|
|
|
|
, lxml
|
|
|
|
, hypothesis
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xmlsec";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.3.13";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "pyproject";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-kW9deOgEH2zZORq7plnajJSk/vcZbRJtQK8f9Bfyz4Y=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
nativeBuildInputs = [ pkg-config pkgconfig setuptools-scm ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ xmlsec libxslt libxml2 libtool ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lxml ];
|
|
|
|
|
2023-02-02 18:25:31 +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 ];
|
|
|
|
};
|
|
|
|
}
|