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