1{ lib, fetchFromGitHub, buildPythonPackage, six
2, flake8, pep8-naming, pytest, pytestcov, pytestpep8 }:
3
4buildPythonPackage rec {
5 pname = "jsonlines";
6 version = "1.2.0";
7
8 src = fetchFromGitHub {
9 owner = "wbolster";
10 repo = pname;
11 rev = version;
12 sha256 = "1f8zsqy8p9a41gqg2a5x7sppc5qhhq7gw58id2aigb270yxzs7jw";
13 };
14
15 propagatedBuildInputs = [ six ];
16
17 checkInputs = [ flake8 pep8-naming pytest pytestcov pytestpep8 ];
18 checkPhase = ''
19 pytest
20 '';
21
22 meta = with lib; {
23 description = "Python library to simplify working with jsonlines and ndjson data";
24 homepage = "https://github.com/wbolster/jsonlines";
25 maintainers = with maintainers; [ sondr3 ];
26 license = licenses.bsd3;
27 };
28}