From ed1ad8c6542a03295ecbc6a93487f67d76cbb292 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 20 Oct 2022 12:08:36 +0200 Subject: [PATCH] python310Packages.portalocker: add pythonImportsCheck - disable on older Python releases --- .../python-modules/portalocker/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/portalocker/default.nix b/pkgs/development/python-modules/portalocker/default.nix index fb94dc8481ef..1c425f3711f1 100644 --- a/pkgs/development/python-modules/portalocker/default.nix +++ b/pkgs/development/python-modules/portalocker/default.nix @@ -1,16 +1,22 @@ -{ lib, buildPythonPackage, fetchPypi +{ lib +, buildPythonPackage +, fetchPypi , pytestCheckHook , pytest-mypy +, pythonOlder , redis }: buildPythonPackage rec { - version = "2.6.0"; pname = "portalocker"; + version = "2.6.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-lk9oMPtCp0tdMrzpntN9gwjB19RN3xjz3Yn0aA3pezk="; + hash = "sha256-lk9oMPtCp0tdMrzpntN9gwjB19RN3xjz3Yn0aA3pezk="; }; propagatedBuildInputs = [ @@ -26,6 +32,10 @@ buildPythonPackage rec { "test_combined" # no longer compatible with setuptools>=58 ]; + pythonImportsCheck = [ + "portalocker" + ]; + meta = with lib; { description = "A library to provide an easy API to file locking"; homepage = "https://github.com/WoLpH/portalocker";