1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "fastrlock"; 12 version = "0.8.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "scoder"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-2h+rhP/EVMG3IkJVkE74p4GeBTwV3BS7fUkKpwedr2k="; 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}