nixpkgs/pkgs/development/python-modules/jsonpickle/default.nix
2020-06-11 11:01:52 +02:00

42 lines
713 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, setuptools_scm
, toml
, importlib-metadata
}:
buildPythonPackage rec {
pname = "jsonpickle";
version = "1.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "e8d4b7cd0bd6826001a74377df1079a76ad8bae0f909282de2554164c837c8ba";
};
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;
};
}