nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 atpublic,
4 buildPythonPackage,
5 fetchPypi,
6 hatchling,
7 psutil,
8 pytest-cov-stub,
9 pytestCheckHook,
10 sybil,
11}:
12
13buildPythonPackage rec {
14 pname = "flufl-lock";
15 version = "8.2.0";
16 pyproject = true;
17
18 src = fetchPypi {
19 pname = "flufl_lock";
20 inherit version;
21 hash = "sha256-FbMzw1+rGjayI4QAVyWK60zXnw+6+CwUTyPN9s8U1eM=";
22 };
23
24 build-system = [ hatchling ];
25
26 dependencies = [
27 atpublic
28 psutil
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 pytest-cov-stub
34 sybil
35 ];
36
37 # disable code coverage checks for all OS. Upstream does not enforce these
38 # checks on Darwin, and code coverage cannot be improved downstream nor is it
39 # relevant to the user.
40 pytestFlags = [ "--no-cov" ];
41
42 pythonImportsCheck = [ "flufl.lock" ];
43
44 pythonNamespaces = [ "flufl" ];
45
46 meta = {
47 description = "NFS-safe file locking with timeouts for POSIX and Windows";
48 homepage = "https://flufllock.readthedocs.io/";
49 changelog = "https://gitlab.com/warsaw/flufl.lock/-/blob/${version}/docs/NEWS.rst";
50 license = lib.licenses.asl20;
51 maintainers = with lib.maintainers; [ qyliss ];
52 };
53}