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