c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
46 lines
893 B
Nix
46 lines
893 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pytest-mypy
|
|
, pythonOlder
|
|
, redis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "portalocker";
|
|
version = "2.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-lk9oMPtCp0tdMrzpntN9gwjB19RN3xjz3Yn0aA3pezk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
redis
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-mypy
|
|
];
|
|
|
|
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 ];
|
|
platforms = platforms.unix; # Windows has a dependency on pypiwin32
|
|
};
|
|
}
|