02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
29 lines
703 B
Nix
29 lines
703 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, python, defusedxml }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "untangle";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stchris";
|
|
repo = "untangle";
|
|
# 1.1.1 is not tagged on GitHub
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-cJkN8vT5hW5hRuLxr/6udwMO4GVH1pJhAc6qmPO2EEI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
defusedxml
|
|
];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest discover -s tests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Convert XML documents into Python objects";
|
|
homepage = "https://github.com/stchris/untangle";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.arnoldfarkas ];
|
|
};
|
|
}
|