504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
27 lines
734 B
Nix
27 lines
734 B
Nix
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, numpy }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonconversion";
|
|
version = "0.2.13";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-4hMY0N/Px+g5zn3YzNfDWPyi8Pglvd/c2N9SeC4JoZ0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "'pytest-runner'" ""
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook numpy ];
|
|
|
|
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 ];
|
|
};
|
|
}
|