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