python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / defusedxml / default.nix
blob95b34a00dbdcc0f4672945934c7ea7037cb992b9
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   lxml,
7   python,
8 }:
10 buildPythonPackage rec {
11   pname = "defusedxml";
12   version = "0.8.0rc2";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "tiran";
17     repo = "defusedxml";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-X88A5V9uXP3wJQ+olK6pZJT66LP2uCXLK8goa5bPARA=";
20   };
22   build-system = [ setuptools ];
24   nativeCheckInputs = [ lxml ];
26   checkPhase = ''
27     runHook preCheck
28     ${python.interpreter} tests.py
29     runHook postCheck
30   '';
32   pythonImportsCheck = [ "defusedxml" ];
34   meta = with lib; {
35     changelog = "https://github.com/tiran/defusedxml/blob/v${version}/CHANGES.txt";
36     description = "Python module to defuse XML issues";
37     homepage = "https://github.com/tiran/defusedxml";
38     license = licenses.psfl;
39     maintainers = with maintainers; [ fab ];
40   };