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