2022-04-03 18:54:34 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, numpy }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonconversion";
|
|
|
|
version = "0.2.13";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-4hMY0N/Px+g5zn3YzNfDWPyi8Pglvd/c2N9SeC4JoZ0=";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "'pytest-runner'" ""
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook numpy ];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "jsonconversion" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This python module helps converting arbitrary Python objects into JSON strings and back";
|
|
|
|
homepage = "https://pypi.org/project/jsonconversion/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.terlar ];
|
|
|
|
};
|
|
|
|
}
|