2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
hatchling,
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dict2xml";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.7.5";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-GNvG1VFz/qkkTrKleMrq8n6kcIYtfhUlQMyCqH9uQzw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
# Tests are inplemented in a custom DSL (RSpec)
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|