2019-10-22 19:31:15 +01:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, six
|
2020-12-11 02:14:06 +00:00
|
|
|
, flake8, pep8-naming, pytest, pytestcov }:
|
2019-10-22 19:31:15 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonlines";
|
|
|
|
version = "1.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wbolster";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1f8zsqy8p9a41gqg2a5x7sppc5qhhq7gw58id2aigb270yxzs7jw";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2020-12-11 02:14:06 +00:00
|
|
|
checkInputs = [ flake8 pep8-naming pytest pytestcov ];
|
2019-10-22 19:31:15 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to simplify working with jsonlines and ndjson data";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/wbolster/jsonlines";
|
2019-10-22 19:31:15 +01:00
|
|
|
maintainers = with maintainers; [ sondr3 ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|