diff --git a/pkgs/development/python-modules/portalocker/default.nix b/pkgs/development/python-modules/portalocker/default.nix index d79f6201b6fd..7b4fc177bc11 100644 --- a/pkgs/development/python-modules/portalocker/default.nix +++ b/pkgs/development/python-modules/portalocker/default.nix @@ -1,34 +1,27 @@ -{ lib, buildPythonPackage, fetchPypi, fetchpatch -, sphinx -, pytest +{ lib, buildPythonPackage, fetchPypi +, pytestCheckHook , pytestcov , pytest-flake8 +, pytest-mypy +, redis }: buildPythonPackage rec { - version = "1.7.0"; + version = "2.3.0"; pname = "portalocker"; src = fetchPypi { inherit pname version; - sha256 = "1p32v16va780mjjdbyp3v702aqg5s618khlila7bdyynis1n84q9"; + sha256 = "0k08c0qg21mwz3iqbd20ab22nq705q7cal4a1qr8qnd6ga03v4af"; }; - patches = [ - # remove pytest-flakes from test dependencies - # merged into master, remove > 1.7.0 release - (fetchpatch { - url = "https://github.com/WoLpH/portalocker/commit/42e4c0a16bbc987c7e33b5cbc7676a63a164ceb5.patch"; - sha256 = "01mlr41nhh7mh3qhqy5fhp3br4nps745iy4ns9fjcnm5xhabg5rr"; - excludes = [ "pytest.ini" ]; - }) + propagatedBuildInputs = [ + redis ]; checkInputs = [ - sphinx - pytest - pytestcov - pytest-flake8 + pytestCheckHook + pytest-mypy ]; meta = with lib; {