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