depot/third_party/nixpkgs/pkgs/development/python-modules/dict2xml/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

40 lines
899 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hatchling
}:
buildPythonPackage rec {
pname = "dict2xml";
version = "1.7.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "delfick";
repo = "python-dict2xml";
rev = "refs/tags/release-${version}";
hash = "sha256-0Ahc+8pb1gHvcpnYhKAJYLIaQ5Wbp7Q8clzMVcnVdYs=";
};
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 ];
};
}