nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchPypi
2, pytestCheckHook
3, pytest-mypy
4, redis
5}:
6
7buildPythonPackage rec {
8 version = "2.4.0";
9 pname = "portalocker";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "sha256-pkitdhuOonNwy1kVNQEizYB7gg0hk+1cnMKPFj32N/Q=";
14 };
15
16 propagatedBuildInputs = [
17 redis
18 ];
19
20 checkInputs = [
21 pytestCheckHook
22 pytest-mypy
23 ];
24
25 disabledTests = [
26 "test_combined" # no longer compatible with setuptools>=58
27 ];
28
29 meta = with lib; {
30 description = "A library to provide an easy API to file locking";
31 homepage = "https://github.com/WoLpH/portalocker";
32 license = licenses.psfl;
33 maintainers = with maintainers; [ jonringer ];
34 platforms = platforms.unix; # Windows has a dependency on pypiwin32
35 };
36}