depot/third_party/nixpkgs/pkgs/development/python-modules/dict2xml/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

40 lines
901 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "dict2xml";
version = "1.7.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "delfick";
repo = "python-dict2xml";
rev = "refs/tags/release-${version}";
hash = "sha256-Ara+eWaUQv4VuzuVrpb5mjMXHHCxydS22glLsYz+UE0=";
};
nativeBuildInputs = [
setuptools
];
# Tests are inplemented in a custom DSL (RSpec)
doCheck = false;
pythonImportsCheck = [
"dict2xml"
];
meta = with lib; {
description = "Library to convert a Python dictionary into an XML string";
homepage = "https://github.com/delfick/python-dict2xml";
changelog = "https://github.com/delfick/python-dict2xml/releases/tag/release-${version}";
license = licenses.mit;
maintainers = with maintainers; [ johnazoidberg ];
};
}