nixpkgs/pkgs/development/python-modules/jsonconversion/default.nix
Martin Weinelt 8ea6bde88d
treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

51 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pdm-backend,
pytestCheckHook,
pythonAtLeast,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonconversion";
version = "1.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "DLR-RM";
repo = "python-jsonconversion";
tag = version;
hash = "sha256-yWRpILAkwCvgh5bMiN9/XmS6U9zIQdDS8KVeTYxzDDw=";
};
build-system = [ pdm-backend ];
pythonRemoveDeps = [
"pytest-runner"
"pytest"
];
pythonRelaxDeps = [ "numpy" ];
dependencies = [
numpy
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jsonconversion" ];
disabledTests = lib.optionals (pythonAtLeast "3.13") [ "test_dict" ];
meta = {
description = "This python module helps converting arbitrary Python objects into JSON strings and back";
homepage = "https://github.com/DLR-RM/python-jsonconversion";
changelog = "https://github.com/DLR-RM/python-jsonconversion/releases/tag/${version}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ terlar ];
};
}