depot/third_party/nixpkgs/pkgs/development/python-modules/jsonpickle/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

41 lines
700 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, setuptools-scm
, toml
, importlib-metadata
}:
buildPythonPackage rec {
pname = "jsonpickle";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-hGhM/FM4pTQXPI3WmAnkDyhl0L4fiit6+EZeW5aNz6k=";
};
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;
};
}