depot/third_party/nixpkgs/pkgs/development/python-modules/portalocker/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

36 lines
772 B
Nix

{ lib, buildPythonPackage, fetchPypi
, pytestCheckHook
, pytest-mypy
, redis
}:
buildPythonPackage rec {
version = "2.5.1";
pname = "portalocker";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ro6cwmYNoEv0H6Gg7vfjALteSlhprfsabYVRYytVmys=";
};
propagatedBuildInputs = [
redis
];
checkInputs = [
pytestCheckHook
pytest-mypy
];
disabledTests = [
"test_combined" # no longer compatible with setuptools>=58
];
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
};
}