depot/third_party/nixpkgs/pkgs/development/python-modules/jsonpickle/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

41 lines
700 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, setuptools-scm
, toml
, importlib-metadata
}:
buildPythonPackage rec {
pname = "jsonpickle";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-eycpGLBVQYLlPcNA3dYtm3+QL+x+ewViDATzzO9Hmg4=";
};
checkInputs = [ pytest ];
nativeBuildInputs = [
setuptools-scm
toml
];
propagatedBuildInputs = [
importlib-metadata
];
checkPhase = ''
rm pytest.ini
pytest tests/jsonpickle_test.py
'';
meta = {
description = "Python library for serializing any arbitrary object graph into JSON";
homepage = "http://jsonpickle.github.io/";
license = lib.licenses.bsd3;
};
}