nixpkgs/pkgs/development/python-modules/jsonpickle/default.nix

42 lines
713 B
Nix
Raw Normal View History

2017-12-30 17:12:19 +00:00
{ lib
, buildPythonPackage
, fetchPypi
2019-08-02 22:49:18 +01:00
, pytest
2020-06-07 10:33:47 +01:00
, setuptools_scm
, toml
, importlib-metadata
2017-12-30 17:12:19 +00:00
}:
buildPythonPackage rec {
pname = "jsonpickle";
version = "2.0.0";
2017-12-30 17:12:19 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "0be49cba80ea6f87a168aa8168d717d00c6ca07ba83df3cec32d3b30bfe6fb9a";
2017-12-30 17:12:19 +00:00
};
2019-08-02 22:49:18 +01:00
checkInputs = [ pytest ];
2020-06-07 10:33:47 +01:00
nativeBuildInputs = [
setuptools_scm
toml
];
propagatedBuildInputs = [
importlib-metadata
];
2020-06-07 10:33:47 +01:00
checkPhase = ''
rm pytest.ini
pytest tests/jsonpickle_test.py
'';
2017-12-30 17:12:19 +00:00
meta = {
description = "Python library for serializing any arbitrary object graph into JSON";
homepage = "http://jsonpickle.github.io/";
2017-12-30 17:12:19 +00:00
license = lib.licenses.bsd3;
};
2019-08-02 22:49:18 +01:00
}