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