1{ lib
2, buildPythonPackage
3, diskcache
4, eventlet
5, fetchFromGitHub
6, more-itertools
7, pytestCheckHook
8, pythonOlder
9, setuptools
10}:
11
12buildPythonPackage rec {
13 pname = "fasteners";
14 version = "0.18";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "harlowja";
21 repo = pname;
22 rev = "refs/tags/${version}";
23 hash = "sha256-FGcGGRfObOqXuURyEuNt/KDn51POpdNPUJJKtMcLJNI=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 ];
29
30 nativeCheckInputs = [
31 diskcache
32 eventlet
33 more-itertools
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "fasteners"
39 ];
40
41 pytestFlagsArray = [
42 "tests/"
43 ];
44
45 meta = with lib; {
46 description = "Module that provides useful locks";
47 homepage = "https://github.com/harlowja/fasteners";
48 changelog = "https://github.com/harlowja/fasteners/releases/tag/${version}";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ ];
51 };
52}