Files
nixpkgs/pkgs/development/python-modules/defusedxml/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
855 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
lxml,
python,
}:
buildPythonPackage rec {
pname = "defusedxml";
version = "0.8.0rc2";
pyproject = true;
src = fetchFromGitHub {
owner = "tiran";
repo = "defusedxml";
tag = "v${version}";
hash = "sha256-X88A5V9uXP3wJQ+olK6pZJT66LP2uCXLK8goa5bPARA=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ lxml ];
checkPhase = ''
runHook preCheck
${python.interpreter} tests.py
runHook postCheck
'';
pythonImportsCheck = [ "defusedxml" ];
meta = {
changelog = "https://github.com/tiran/defusedxml/blob/v${version}/CHANGES.txt";
description = "Python module to defuse XML issues";
homepage = "https://github.com/tiran/defusedxml";
license = lib.licenses.psfl;
maintainers = with lib.maintainers; [ fab ];
};
}