fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
47 lines
879 B
Nix
47 lines
879 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonAtLeast,
|
|
|
|
# build-system
|
|
setuptools,
|
|
setuptools-scm,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonpickle";
|
|
version = "3.0.4";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-obFMjWIhzY85TyqX5zXqHX7ckn+9E1sm8vhwBlfIxis=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
preCheck = ''
|
|
rm pytest.ini
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.12") [
|
|
# imports distutils
|
|
"test_thing_with_submodule"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for serializing any arbitrary object graph into JSON";
|
|
downloadPage = "https://github.com/jsonpickle/jsonpickle";
|
|
homepage = "http://jsonpickle.github.io/";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|