depot/third_party/nixpkgs/pkgs/development/python-modules/defusedxml/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

30 lines
602 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
python,
}:
buildPythonPackage rec {
pname = "defusedxml";
version = "0.7.1";
format = "setuptools";
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 ];
};
}