1{ lib 2, anyio 3, buildPythonPackage 4, fetchFromGitHub 5, setuptools-scm 6, pytestCheckHook 7, pythonOlder 8, trio 9}: 10 11buildPythonPackage rec { 12 pname = "asyncclick"; 13 version = "8.0.1.3"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "python-trio"; 19 repo = pname; 20 rev = version; 21 sha256 = "03b8zz8i3aqzxr3ffzb4sxnrcm3gsk9r4hmr0fkml1ahi754bx2r"; 22 }; 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ 27 setuptools-scm 28 ]; 29 30 propagatedBuildInputs = [ 31 anyio 32 ]; 33 34 checkInputs = [ 35 pytestCheckHook 36 trio 37 ]; 38 39 disabledTests = [ 40 # RuntimeWarning: coroutine 'Context.invoke' was never awaited 41 "test_context_invoke_type" 42 ]; 43 44 pythonImportsCheck = [ "asyncclick" ]; 45 46 meta = with lib; { 47 description = "Python composable command line utility"; 48 homepage = "https://github.com/python-trio/asyncclick"; 49 license = with licenses; [ bsd3 ]; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}