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