Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / defusedxml / default.nix
blob797fee025be4b6b40b0b987423c79d3775a774d7
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , python
6 }:
8 buildPythonPackage rec {
9   pname = "defusedxml";
10   version = "0.7.0";
11   disabled = pythonOlder "3.6";
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "183fz8xwclhkirwpvpldyypn47r8lgzfz2mk9jgyg7b37jg5vcc6";
16   };
18   checkPhase = ''
19     ${python.interpreter} tests.py
20   '';
22   pythonImportsCheck = [ "defusedxml" ];
24   meta = with lib; {
25     description = "Python module to defuse XML issues";
26     homepage = "https://github.com/tiran/defusedxml";
27     license = licenses.psfl;
28     maintainers = with maintainers; [ fab ];
29   };