depot/third_party/nixpkgs/pkgs/development/python-modules/defusedxml/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

28 lines
571 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "defusedxml";
version = "0.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69";
};
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 ];
};
}