2021-07-03 03:11:41 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mypy
|
|
|
|
, redis
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "portalocker";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-pkitdhuOonNwy1kVNQEizYB7gg0hk+1cnMKPFj32N/Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
redis
|
2020-06-02 18:00:15 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
2021-07-03 03:11:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-mypy
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library to provide an easy API to file locking";
|
|
|
|
homepage = "https://github.com/WoLpH/portalocker";
|
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
platforms = platforms.unix; # Windows has a dependency on pypiwin32
|
|
|
|
};
|
|
|
|
}
|