1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "asynccmd"; 10 version = "0.2.4"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "valentinmk"; 17 repo = pname; 18 rev = version; 19 sha256 = "02sa0k0zgwv0y8k00pd1yh4x7k7xqhdikk2c0avpih1204lcw26h"; 20 }; 21 22 patches = [ 23 # Deprecation of asyncio.Task.all_tasks(), https://github.com/valentinmk/asynccmd/pull/2 24 (fetchpatch { 25 name = "deprecation-python-38.patch"; 26 url = "https://github.com/valentinmk/asynccmd/commit/12afa60ac07db17e96755e266061f2c88cb545ff.patch"; 27 sha256 = "0l6sk93gj51qqrpw01a8iiyz14k6dd2z68vr9l9w9vx76l8725yf"; 28 }) 29 ]; 30 31 # Tests are outdated 32 doCheck = false; 33 34 pythonImportsCheck = [ "asynccmd" ]; 35 36 meta = with lib; { 37 description = "Asyncio implementation of Cmd Python library"; 38 homepage = "https://github.com/valentinmk/asynccmd"; 39 license = with licenses; [ asl20 ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}