mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 01:26:32 +01:00
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>
37 lines
742 B
Nix
37 lines
742 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
unittestCheckHook,
|
|
defusedxml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "untangle";
|
|
version = "1.2.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stchris";
|
|
repo = "untangle";
|
|
# 1.1.1 is not tagged on GitHub
|
|
tag = version;
|
|
hash = "sha256-cJkN8vT5hW5hRuLxr/6udwMO4GVH1pJhAc6qmPO2EEI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ defusedxml ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
unittestFlagsArray = [
|
|
"-s"
|
|
"tests"
|
|
];
|
|
|
|
meta = {
|
|
description = "Convert XML documents into Python objects";
|
|
homepage = "https://github.com/stchris/untangle";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.arnoldfarkas ];
|
|
};
|
|
}
|