Files
nixpkgs/pkgs/development/python-modules/jsonconversion/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

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pdm-backend,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonconversion";
version = "1.2.1";
pyproject = true;
disabled = pythonOlder "3.11";
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 ];
};
}