depot/third_party/nixpkgs/pkgs/development/python-modules/jsonpickle/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

47 lines
879 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
# build-system
setuptools,
setuptools-scm,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jsonpickle";
version = "3.2.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-S212QJdBmfes+QNSlTZbWhpxqREJ7/oVuhcPu0jPhxw=";
};
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;
};
}