1{ lib 2, buildPythonPackage 3, cython 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "frozenlist"; 11 version = "1.2.0"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "aio-libs"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "sha256-rTbekdceC5QK0aiySi/4QUwaEoDfTlLrx2t6Kb9bH7U="; 19 }; 20 21 nativeBuildInputs = [ 22 cython 23 ]; 24 25 checkInputs = [ 26 pytestCheckHook 27 ]; 28 29 postPatch = '' 30 substituteInPlace pytest.ini \ 31 --replace "--cov=frozenlist" "" 32 ''; 33 34 preBuild = '' 35 cython frozenlist/_frozenlist.pyx 36 ''; 37 38 pythonImportsCheck = [ "frozenlist" ]; 39 40 meta = with lib; { 41 description = "Python module for list-like structure"; 42 homepage = "https://github.com/aio-libs/frozenlist"; 43 license = with licenses; [ asl20 ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}