Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / jsonpickle / default.nix
blobabf3c27e98ff1430998ad6f22213c9dd65b8bdf4
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytest
5 , setuptools_scm
6 , toml
7 , importlib-metadata
8 }:
10 buildPythonPackage rec {
11   pname = "jsonpickle";
12   version = "1.4.2";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "c9b99b28a9e6a3043ec993552db79f4389da11afcb1d0246d93c79f4b5e64062";
17   };
19   checkInputs = [ pytest ];
21   nativeBuildInputs = [
22     setuptools_scm
23     toml
24   ];
26   propagatedBuildInputs = [
27     importlib-metadata
28   ];
30   checkPhase = ''
31     rm pytest.ini
32     pytest tests/jsonpickle_test.py
33   '';
35   meta = {
36     description = "Python library for serializing any arbitrary object graph into JSON";
37     homepage = "http://jsonpickle.github.io/";
38     license = lib.licenses.bsd3;
39   };