nixpkgs/pkgs/development/python-modules/defusedxml/default.nix

31 lines
605 B
Nix
Raw Normal View History

2021-03-06 13:12:11 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
2021-03-06 13:12:11 +00:00
}:
buildPythonPackage rec {
pname = "defusedxml";
version = "0.7.0";
2021-03-06 13:12:11 +00:00
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
2021-03-06 13:12:11 +00:00
sha256 = "183fz8xwclhkirwpvpldyypn47r8lgzfz2mk9jgyg7b37jg5vcc6";
};
checkPhase = ''
${python.interpreter} tests.py
'';
2021-03-06 13:12:11 +00:00
pythonImportsCheck = [ "defusedxml" ];
meta = with lib; {
description = "Python module to defuse XML issues";
homepage = "https://github.com/tiran/defusedxml";
license = licenses.psfl;
maintainers = with maintainers; [ fab ];
};
}