1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 23:02:38 +03:00
nixpkgs/pkgs/development/python-modules/xmlsec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-18 14:14:28 -08:00
{ lib
, fetchPypi
, buildPythonPackage
, pytestCheckHook
, libxslt
, libxml2
, libtool
, pkg-config
, xmlsec
, pkgconfig
, setuptools-scm
, lxml
, hypothesis
}:
buildPythonPackage rec {
pname = "xmlsec";
version = "1.3.13";
format = "pyproject";
2021-01-18 14:14:28 -08:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-kW9deOgEH2zZORq7plnajJSk/vcZbRJtQK8f9Bfyz4Y=";
2021-01-18 14:14:28 -08:00
};
nativeBuildInputs = [ pkg-config pkgconfig setuptools-scm ];
2021-01-18 14:14:28 -08:00
buildInputs = [ xmlsec libxslt libxml2 libtool ];
propagatedBuildInputs = [ lxml ];
checkInputs = [ pytestCheckHook hypothesis ];
disabledTestPaths = [
# Full git clone required for test_doc_examples
"tests/test_doc_examples.py"
# test_reinitialize_module segfaults python
# https://github.com/mehcode/python-xmlsec/issues/203
"tests/test_xmlsec.py"
];
pythonImportsCheck = [ "xmlsec" ];
2021-01-18 14:14:28 -08: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 ];
};
}