1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, redis
7}:
8
9buildPythonPackage rec {
10 pname = "portalocker";
11 version = "2.7.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-Ay6B1TSojsFzbQP3gLoHPwR6BsR4sG4pN0hvM06VXFE=";
19 };
20
21 propagatedBuildInputs = [
22 redis
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 disabledTests = [
30 "test_combined" # no longer compatible with setuptools>=58
31 ];
32
33 pythonImportsCheck = [
34 "portalocker"
35 ];
36
37 meta = with lib; {
38 description = "A library to provide an easy API to file locking";
39 homepage = "https://github.com/WoLpH/portalocker";
40 license = licenses.psfl;
41 maintainers = with maintainers; [ jonringer ];
42 };
43}