2021-04-17 01:59:46 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook
|
2021-07-20 21:42:24 +01:00
|
|
|
, atpublic, psutil, pytest-cov, sybil
|
2021-04-17 01:58:02 +01:00
|
|
|
}:
|
2019-08-23 21:19:45 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flufl.lock";
|
2021-08-08 17:34:34 +01:00
|
|
|
version = "5.1";
|
2019-08-23 21:19:45 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-08 17:34:34 +01:00
|
|
|
sha256 = "1ylahys50vaj7iw6dhlx3gg7vs8cms9sbyvscd06clnk6lqk78ad";
|
2019-08-23 21:19:45 +01:00
|
|
|
};
|
2021-04-17 01:58:02 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ atpublic psutil ];
|
2021-07-20 21:42:24 +01:00
|
|
|
checkInputs = [ pytestCheckHook pytest-cov sybil ];
|
2021-04-17 01:59:46 +01:00
|
|
|
|
2021-05-12 09:06:40 +01:00
|
|
|
# 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" ];
|
|
|
|
|
2021-04-17 01:59:46 +01:00
|
|
|
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;
|
|
|
|
};
|
2019-08-23 21:19:45 +01:00
|
|
|
}
|