Files
nixpkgs/pkgs/development/python-modules/dict2xml/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

38 lines
878 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
hatchling,
}:
buildPythonPackage rec {
pname = "dict2xml";
version = "1.7.7";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "delfick";
repo = "python-dict2xml";
tag = "release-${version}";
hash = "sha256-66ODdslXF6nWYqJku8cNG0RPK/YGEfbpHwVLLnSoDrk=";
};
nativeBuildInputs = [ hatchling ];
# Tests are implemented in a custom DSL (RSpec)
doCheck = false;
pythonImportsCheck = [ "dict2xml" ];
meta = {
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-${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ johnazoidberg ];
};
}