depot/third_party/nixpkgs/pkgs/development/python-modules/defusedxml/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

30 lines
605 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
}:
buildPythonPackage rec {
pname = "defusedxml";
version = "0.7.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "183fz8xwclhkirwpvpldyypn47r8lgzfz2mk9jgyg7b37jg5vcc6";
};
checkPhase = ''
${python.interpreter} tests.py
'';
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 ];
};
}