summary refs log tree commit diff
path: root/pkgs/development/python-modules/jsonconversion/default.nix
blob: dda1d48a6912d84d41793f729d911f6b1c9881da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, numpy }:

buildPythonPackage rec {
  pname = "jsonconversion";
  version = "0.2.13";

  src = fetchPypi {
    inherit pname version;
    sha256 = "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 ];
  };
}