at 22.05-pre 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.12"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "2c86ac6ce570c9e04f04da0cd5e7d3db346e4b5b1d006311606368f17c756ef9"; 23 }; 24 25 # https://github.com/mehcode/python-xmlsec/issues/84#issuecomment-632930116 26 patches = [ 27 ./reset-lxml-in-tests.patch 28 ]; 29 30 nativeBuildInputs = [ pkg-config pkgconfig setuptools-scm ]; 31 32 buildInputs = [ xmlsec libxslt libxml2 libtool ]; 33 34 propagatedBuildInputs = [ lxml ]; 35 36 # Full git clone required for test_doc_examples 37 checkInputs = [ pytestCheckHook hypothesis ]; 38 disabledTestPaths = [ "tests/test_doc_examples.py" ]; 39 40 pythonImportsCheck = [ "xmlsec" ]; 41 42 meta = with lib; { 43 description = "Python bindings for the XML Security Library"; 44 homepage = "https://github.com/mehcode/python-xmlsec"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ zhaofengli ]; 47 }; 48}