1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "fastrlock";
12 version = "0.8.3";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "scoder";
19 repo = "fastrlock";
20 tag = "v${version}";
21 hash = "sha256-NB/AR6g1ZP5Atc0zwZNuXLsxg8BM67rWnx3Q6Pb0k5k=";
22 };
23
24 nativeBuildInputs = [ cython ];
25
26 # Todo: Check why the tests have an import error
27 doCheck = false;
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "fastrlock" ];
32
33 meta = with lib; {
34 description = "RLock implementation for CPython";
35 homepage = "https://github.com/scoder/fastrlock";
36 license = licenses.mit;
37 maintainers = with maintainers; [ hyphon81 ];
38 };
39}