2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-07-03 03:11:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mypy
|
2022-10-21 18:38:19 +00:00
|
|
|
, pythonOlder
|
2021-07-03 03:11:41 +00:00
|
|
|
, redis
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "portalocker";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "2.6.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-lk9oMPtCp0tdMrzpntN9gwjB19RN3xjz3Yn0aA3pezk=";
|
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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-03 03:11:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-mypy
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_combined" # no longer compatible with setuptools>=58
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"portalocker"
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|