2024-02-29 20:09:43 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
|
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 {
|
2024-02-29 20:09:43 +00:00
|
|
|
pname = "flufl-lock";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "7.1.1";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-02-29 20:09:43 +00:00
|
|
|
pname = "flufl.lock";
|
|
|
|
inherit version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-rxQXKzW7xYaHvQa3DRaT/Y1Iy/D/3n5RphjBSK4kBC0=";
|
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 ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ 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" ];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flufl.lock"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonNamespaces = [
|
|
|
|
"flufl"
|
|
|
|
];
|
|
|
|
|
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";
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://gitlab.com/warsaw/flufl.lock/-/blob/${version}/docs/NEWS.rst";
|
2021-04-22 02:08:21 +00:00
|
|
|
maintainers = with maintainers; [ qyliss ];
|
|
|
|
license = licenses.asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|