depot/third_party/nixpkgs/pkgs/development/python-modules/jsonlines/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

28 lines
704 B
Nix

{ 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;
};
}