1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonAtLeast,
6
7 # build-system
8 setuptools,
9 setuptools-scm,
10
11 # tests
12 pytestCheckHook,
13 simplejson,
14}:
15
16buildPythonPackage rec {
17 pname = "jsonpickle";
18 version = "4.1.1";
19 pyproject = true;
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-+G4Y8T4rlsHB7t4Le5AJW7th2Z/twUgTxE3C82HbuuE=";
24 };
25
26 build-system = [
27 setuptools
28 setuptools-scm
29 ];
30
31 preCheck = ''
32 rm pytest.ini
33 '';
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 simplejson
38 ];
39
40 disabledTests = lib.optionals (pythonAtLeast "3.12") [
41 # imports distutils
42 "test_thing_with_submodule"
43 ];
44
45 meta = with lib; {
46 description = "Python library for serializing any arbitrary object graph into JSON";
47 downloadPage = "https://github.com/jsonpickle/jsonpickle";
48 homepage = "http://jsonpickle.github.io/";
49 license = licenses.bsd3;
50 };
51}