diff --git a/pkgs/development/python-modules/jsonlines/default.nix b/pkgs/development/python-modules/jsonlines/default.nix index 73e7d308ec4a..a111d3ef6d04 100644 --- a/pkgs/development/python-modules/jsonlines/default.nix +++ b/pkgs/development/python-modules/jsonlines/default.nix @@ -1,28 +1,41 @@ -{ lib, fetchFromGitHub, buildPythonPackage, six -, flake8, pep8-naming, pytest, pytest-cov }: +{ lib +, attrs +, fetchFromGitHub +, buildPythonPackage +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "jsonlines"; - version = "3.0.0"; + version = "3.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "wbolster"; repo = pname; rev = version; - sha256 = "1242bvk208vjaw8zl1d7ydb0i05v8fwdgi92d3bi1vaji9s2hv65"; + hash = "sha256-eMpUk5s49OyD+cNGdAeKA2LvpXdKta2QjZIFDnIBKC8="; }; - propagatedBuildInputs = [ six ]; + propagatedBuildInputs = [ + attrs + ]; - checkInputs = [ flake8 pep8-naming pytest pytest-cov ]; - checkPhase = '' - pytest - ''; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "jsonlines" + ]; meta = with lib; { description = "Python library to simplify working with jsonlines and ndjson data"; homepage = "https://github.com/wbolster/jsonlines"; - maintainers = with maintainers; [ ]; license = licenses.bsd3; + maintainers = with maintainers; [ ]; }; }