depot/third_party/nixpkgs/pkgs/development/python-modules/untangle/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

29 lines
715 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, unittestCheckHook, 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
];
checkInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "-s" "tests" ];
meta = with lib; {
description = "Convert XML documents into Python objects";
homepage = "https://github.com/stchris/untangle";
license = licenses.mit;
maintainers = [ maintainers.arnoldfarkas ];
};
}