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