2021-04-22 02:08:21 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
, atpublic, psutil, pytest-cov, sybil
|
2022-02-10 20:34:41 +00:00
|
|
|
, pdm-pep517
|
2021-04-22 02:08:21 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flufl.lock";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "7.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-Qxt/6PZhKZIA/2elOLrJNxchgcHtOm76bSiTS0i4oSw=";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [ pdm-pep517 ];
|
2021-04-22 02:08:21 +00:00
|
|
|
propagatedBuildInputs = [ atpublic psutil ];
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-cov sybil ];
|
2021-04-22 02:08:21 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|