1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, six
7, watchdog
8}:
9
10buildPythonPackage rec {
11 pname = "ndjson";
12 version = "0.3.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-v5dGy2uxy1PRcs2n8VTAfHhtZl/yg0Hk5om3lrIp5dY=";
20 };
21
22 postPatch = ''
23 substituteInPlace setup.py \
24 --replace "'pytest-runner', " ""
25 '';
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 six
30 watchdog
31 ];
32
33 pythonImportsCheck = [
34 "ndjson"
35 ];
36
37 meta = with lib; {
38 description = "Module supports ndjson";
39 homepage = "https://github.com/rhgrant10/ndjson";
40 changelog = "https://github.com/rhgrant10/ndjson/blob/v${version}/HISTORY.rst";
41 license = licenses.gpl3Only;
42 maintainers = with maintainers; [ freezeboy ];
43 };
44}