at master 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "asynccmd"; 12 version = "0.2.4"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "valentinmk"; 19 repo = "asynccmd"; 20 tag = version; 21 hash = "sha256-0AjOKAEiwHi3AkzMGRvE/czTCfShXQAm8mDz98EESgs="; 22 }; 23 24 patches = [ 25 # Deprecation of asyncio.Task.all_tasks(), https://github.com/valentinmk/asynccmd/pull/2 26 (fetchpatch { 27 name = "deprecation-python-38.patch"; 28 url = "https://github.com/valentinmk/asynccmd/commit/12afa60ac07db17e96755e266061f2c88cb545ff.patch"; 29 hash = "sha256-zhdxEDWn78QTTXkj80VrZpLwfYxIBcBvxjgU+Uaa2lA="; 30 }) 31 ]; 32 33 build-system = [ setuptools ]; 34 35 # Tests are outdated 36 doCheck = false; 37 38 pythonImportsCheck = [ "asynccmd" ]; 39 40 meta = with lib; { 41 description = "Asyncio implementation of Cmd Python library"; 42 homepage = "https://github.com/valentinmk/asynccmd"; 43 changelog = "https://github.com/valentinmk/asynccmd/releases/tag/${version}"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}