1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
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";
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
];
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
}