nixpkgs/pkgs/development/python-modules/portalocker/default.nix
Weijia Wang 949d771411
Merge pull request #211755 from r-ryantm/auto-update/python310Packages.portalocker
python310Packages.portalocker: 2.6.0 -> 2.7.0
2023-02-25 23:57:32 +02:00

47 lines
899 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pytest-mypy
, 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
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
};
}