1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, hatchling
6}:
7
8buildPythonPackage rec {
9 pname = "dict2xml";
10 version = "1.7.3";
11 format = "pyproject";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "delfick";
17 repo = "python-dict2xml";
18 rev = "refs/tags/release-${version}";
19 hash = "sha256-0Ahc+8pb1gHvcpnYhKAJYLIaQ5Wbp7Q8clzMVcnVdYs=";
20 };
21
22 nativeBuildInputs = [
23 hatchling
24 ];
25
26 # Tests are inplemented in a custom DSL (RSpec)
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "dict2xml"
31 ];
32
33 meta = with lib; {
34 description = "Library to convert a Python dictionary into an XML string";
35 homepage = "https://github.com/delfick/python-dict2xml";
36 changelog = "https://github.com/delfick/python-dict2xml/releases/tag/release-${version}";
37 license = licenses.mit;
38 maintainers = with maintainers; [ johnazoidberg ];
39 };
40}