23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
40 lines
895 B
Nix
40 lines
895 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, hatchling
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dict2xml";
|
|
version = "1.7.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "delfick";
|
|
repo = "python-dict2xml";
|
|
rev = "refs/tags/release-${version}";
|
|
hash = "sha256-58sWvdkbt+czo96RUxB2vdOl/wqSU3BNIozSEdixWO8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|