nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 67 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hypothesis, 6 libtool, 7 libxml2, 8 libxslt, 9 lxml, 10 pkg-config, 11 pkgconfig, 12 pytestCheckHook, 13 setuptools-scm, 14 xmlsec, 15}: 16 17buildPythonPackage rec { 18 pname = "xmlsec"; 19 version = "1.3.17"; 20 pyproject = true; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-8/rJrmefZlhZJcwAxfaDmuNsHQMVdhlXHe4YrMBbnAE="; 25 }; 26 27 postPatch = '' 28 substituteInPlace pyproject.toml \ 29 --replace-fail "setuptools==" "setuptools>=" 30 ''; 31 32 build-system = [ setuptools-scm ]; 33 34 nativeBuildInputs = [ 35 pkg-config 36 pkgconfig 37 ]; 38 39 buildInputs = [ 40 xmlsec 41 libxslt 42 libxml2 43 libtool 44 ]; 45 46 propagatedBuildInputs = [ lxml ]; 47 48 nativeCheckInputs = [ 49 pytestCheckHook 50 hypothesis 51 ]; 52 53 disabledTestPaths = [ 54 # Full git clone required for test_doc_examples 55 "tests/test_doc_examples.py" 56 ]; 57 58 pythonImportsCheck = [ "xmlsec" ]; 59 60 meta = { 61 description = "Python bindings for the XML Security Library"; 62 homepage = "https://github.com/mehcode/python-xmlsec"; 63 changelog = "https://github.com/xmlsec/python-xmlsec/releases/tag/${version}"; 64 license = lib.licenses.mit; 65 maintainers = with lib.maintainers; [ zhaofengli ]; 66 }; 67}