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 {
|
2021-08-25 08:27:29 +00:00
|
|
|
version = "2.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "portalocker";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-25 08:27:29 +00:00
|
|
|
sha256 = "5ff2e494eccd3ff1cbaba8e4defd45bc7edb8eea3908c74f6de5d40641a1ed92";
|
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
|
|
|
|
};
|
|
|
|
}
|