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

27 lines
509 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
2017-12-30 17:12:19 +00:00
}:
buildPythonPackage rec {
pname = "jsonpickle";
2019-08-02 22:49:18 +01:00
version = "1.2";
2017-12-30 17:12:19 +00:00
src = fetchPypi {
inherit pname version;
2019-08-02 22:49:18 +01:00
sha256 = "16xj4r31pnd90slax5mmd5wps5s73wp9mn6sy9nhkl5ih7bj5sfk";
2017-12-30 17:12:19 +00:00
};
2019-08-02 22:49:18 +01:00
checkInputs = [ pytest ];
checkPhase = "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/;
license = lib.licenses.bsd3;
};
2019-08-02 22:49:18 +01:00
}