2021-06-28 23:43:42 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mypy
|
|
|
|
, redis
|
2019-05-28 19:14:54 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-02-18 07:06:34 +00:00
|
|
|
version = "2.4.0";
|
2019-05-28 19:14:54 +01:00
|
|
|
pname = "portalocker";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-18 07:06:34 +00:00
|
|
|
sha256 = "sha256-pkitdhuOonNwy1kVNQEizYB7gg0hk+1cnMKPFj32N/Q=";
|
2019-05-28 19:14:54 +01:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:43:42 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
redis
|
2020-05-10 18:47:08 +01:00
|
|
|
];
|
|
|
|
|
2019-05-28 19:14:54 +01:00
|
|
|
checkInputs = [
|
2021-06-28 23:43:42 +01:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-mypy
|
2019-05-28 19:14:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library to provide an easy API to file locking";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/WoLpH/portalocker";
|
2019-05-28 19:14:54 +01:00
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
platforms = platforms.unix; # Windows has a dependency on pypiwin32
|
|
|
|
};
|
|
|
|
}
|