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