nixpkgs/pkgs/development/python-modules/portalocker/default.nix

33 lines
683 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi
, pytestCheckHook
, pytest-mypy
, redis
2019-05-28 19:14:54 +01:00
}:
buildPythonPackage rec {
version = "2.4.0";
2019-05-28 19:14:54 +01:00
pname = "portalocker";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-pkitdhuOonNwy1kVNQEizYB7gg0hk+1cnMKPFj32N/Q=";
2019-05-28 19:14:54 +01:00
};
propagatedBuildInputs = [
redis
];
2019-05-28 19:14:54 +01:00
checkInputs = [
pytestCheckHook
pytest-mypy
2019-05-28 19:14:54 +01:00
];
meta = with lib; {
description = "A library to provide an easy API to file locking";
homepage = "https://github.com/WoLpH/portalocker";
2019-05-28 19:14:54 +01:00
license = licenses.psfl;
maintainers = with maintainers; [ jonringer ];
platforms = platforms.unix; # Windows has a dependency on pypiwin32
};
}