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
|
2020-06-11 10:01:52 +01:00
|
|
|
, importlib-metadata
|
2017-12-30 17:12:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonpickle";
|
2020-06-06 07:47:15 +01:00
|
|
|
version = "1.4.1";
|
2017-12-30 17:12:19 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:15 +01:00
|
|
|
sha256 = "e8d4b7cd0bd6826001a74377df1079a76ad8bae0f909282de2554164c837c8ba";
|
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
|
|
|
|
];
|
|
|
|
|
2020-06-11 10:01:52 +01:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
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
|
|
|
}
|