about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ijson/default.nix
blob: a3a37c0accf2503067df7dc35bd4e7f2de9abd8e (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, fetchPypi
, yajl
, cffi
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "ijson";
  version = "3.2.2";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-uYg8hxYAHXpcgYWQUgjkCnfu+bKnPbzk0YnOsJKqk70=";
  };

  buildInputs = [
    yajl
  ];

  propagatedBuildInputs = [
    cffi
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  doCheck = true;

  pythonImportsCheck = [
    "ijson"
  ];

  meta = with lib; {
    description = "Iterative JSON parser with a standard Python iterator interface";
    homepage = "https://github.com/ICRAR/ijson";
    changelog = "https://github.com/ICRAR/ijson/blob/v${version}/CHANGELOG.md";
    license = licenses.bsd3;
    maintainers = with maintainers; [ rvl ];
  };
}