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