9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
43 lines
797 B
Nix
43 lines
797 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, redis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "portalocker";
|
|
version = "2.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Ay6B1TSojsFzbQP3gLoHPwR6BsR4sG4pN0hvM06VXFE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
redis
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_combined" # no longer compatible with setuptools>=58
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"portalocker"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|