mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 14:53:47 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
atpublic,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
psutil,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
sybil,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flufl-lock";
|
|
version = "9.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "flufl_lock";
|
|
inherit version;
|
|
hash = "sha256-jXPIjKt8mLeSZxApnBFivsfOJT+bnF8KLKgDf58kAjQ=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
atpublic
|
|
psutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
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.
|
|
pytestFlags = [ "--no-cov" ];
|
|
|
|
pythonImportsCheck = [ "flufl.lock" ];
|
|
|
|
pythonNamespaces = [ "flufl" ];
|
|
|
|
meta = {
|
|
description = "NFS-safe file locking with timeouts for POSIX and Windows";
|
|
homepage = "https://flufllock.readthedocs.io/";
|
|
changelog = "https://gitlab.com/warsaw/flufl.lock/-/blob/${version}/docs/NEWS.rst";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ qyliss ];
|
|
};
|
|
}
|