depot/third_party/nixpkgs/pkgs/development/python-modules/flufl/lock.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

29 lines
877 B
Nix

{ lib, buildPythonPackage, fetchPypi, pytestCheckHook
, atpublic, psutil, pytest-cov, sybil
}:
buildPythonPackage rec {
pname = "flufl.lock";
version = "6.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-/HSO5gnshktIOO9knb0RcPp53rDCE8L9URUb7mp/wkI=";
};
propagatedBuildInputs = [ atpublic psutil ];
checkInputs = [ pytestCheckHook pytest-cov sybil ];
# disable code coverage checks for all OS. Upstream does not enforce these
# checks on Darwin, and code coverage cannot be improved downstream nor is it
# relevant to the user.
pytestFlagsArray = [ "--no-cov" ];
meta = with lib; {
homepage = "https://flufllock.readthedocs.io/";
description = "NFS-safe file locking with timeouts for POSIX and Windows";
maintainers = with maintainers; [ qyliss ];
license = licenses.asl20;
platforms = platforms.all;
};
}