1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
35 lines
830 B
Nix
35 lines
830 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dict2xml";
|
|
version = "1.7.7";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|