depot/third_party/nixpkgs/pkgs/development/python-modules/flufl/lock.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

56 lines
1.2 KiB
Nix

{
lib,
atpublic,
buildPythonPackage,
fetchPypi,
hatchling,
psutil,
pytest-cov,
pytestCheckHook,
pythonOlder,
sybil,
}:
buildPythonPackage rec {
pname = "flufl-lock";
version = "8.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "flufl_lock";
inherit version;
hash = "sha256-2IMCAFaSpj2YtgCAFY+vCJvl7K5pafcGQJ2oJ2/c58s=";
};
build-system = [ hatchling ];
dependencies = [
atpublic
psutil
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov
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.
pytestFlagsArray = [ "--no-cov" ];
pythonImportsCheck = [ "flufl.lock" ];
pythonNamespaces = [ "flufl" ];
meta = with lib; {
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 = licenses.asl20;
maintainers = with maintainers; [ qyliss ];
};
}