2021-04-22 02:08:21 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook
|
|
|
|
, atpublic, psutil, pytestcov, sybil
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flufl.lock";
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "5.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-22 02:08:21 +00:00
|
|
|
sha256 = "1bnapkg99r6mixn3kh314bqcfk8q54y0cvhjpj87j7dhjpsakfpz";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ atpublic psutil ];
|
|
|
|
checkInputs = [ pytestCheckHook pytestcov sybil ];
|
|
|
|
|
2021-05-28 09:39:13 +00: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-22 02:08:21 +00: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;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|