1{ lib 2, buildPythonPackage 3, cython 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, setuptools 8, wheel 9}: 10 11buildPythonPackage rec { 12 pname = "frozenlist"; 13 version = "1.4.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "aio-libs"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-sI6jnrTxDbW0sNVodpCjBnA31VAAmunwMp9s8GkoHGI="; 23 }; 24 25 nativeBuildInputs = [ 26 cython 27 setuptools 28 wheel 29 ]; 30 31 postPatch = '' 32 sed -i "/addopts =/d" pytest.ini 33 ''; 34 35 preBuild = '' 36 cython frozenlist/_frozenlist.pyx 37 ''; 38 39 pythonImportsCheck = [ 40 "frozenlist" 41 ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 ]; 46 47 meta = with lib; { 48 description = "Python module for list-like structure"; 49 homepage = "https://github.com/aio-libs/frozenlist"; 50 license = with licenses; [ asl20 ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}