summary refs log tree commit diff
path: root/pkgs/development/python-modules/jsonlines/default.nix
blob: 4892d72aae91a2a1dd62c940f58b3bd5a2c474d9 (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
{ lib, fetchFromGitHub, buildPythonPackage, six
, flake8, pep8-naming, pytest, pytest-cov }:

buildPythonPackage rec {
  pname = "jsonlines";
  version = "3.0.0";

  src = fetchFromGitHub {
    owner = "wbolster";
    repo = pname;
    rev = version;
    sha256 = "1242bvk208vjaw8zl1d7ydb0i05v8fwdgi92d3bi1vaji9s2hv65";
  };

  propagatedBuildInputs = [ six ];

  checkInputs = [ flake8 pep8-naming pytest pytest-cov ];
  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Python library to simplify working with jsonlines and ndjson data";
    homepage = "https://github.com/wbolster/jsonlines";
    maintainers = with maintainers; [ sondr3 ];
    license = licenses.bsd3;
  };
}