1{ lib, buildPythonPackage, fetchPypi
2, pytestCheckHook
3, pytest-mypy
4, redis
5}:
6
7buildPythonPackage rec {
8 version = "2.3.2";
9 pname = "portalocker";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "75cfe02f702737f1726d83e04eedfa0bda2cc5b974b1ceafb8d6b42377efbd5f";
14 };
15
16 propagatedBuildInputs = [
17 redis
18 ];
19
20 checkInputs = [
21 pytestCheckHook
22 pytest-mypy
23 ];
24
25 meta = with lib; {
26 description = "A library to provide an easy API to file locking";
27 homepage = "https://github.com/WoLpH/portalocker";
28 license = licenses.psfl;
29 maintainers = with maintainers; [ jonringer ];
30 platforms = platforms.unix; # Windows has a dependency on pypiwin32
31 };
32}