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-15 16:39:30 +00:00
|
|
|
, hatchling
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dict2xml";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "1.7.3";
|
2023-03-04 12:14:45 +00:00
|
|
|
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}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-0Ahc+8pb1gHvcpnYhKAJYLIaQ5Wbp7Q8clzMVcnVdYs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeBuildInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
hatchling
|
2023-03-04 12:14:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|