Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / asynccmd / default.nix
blob623424047429719b8750de00ba939b2ff1462c32
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "asynccmd";
10   version = "0.2.4";
11   format = "setuptools";
13   disabled = pythonOlder "3.6";
15   src = fetchFromGitHub {
16     owner = "valentinmk";
17     repo = pname;
18     rev = version;
19     sha256 = "02sa0k0zgwv0y8k00pd1yh4x7k7xqhdikk2c0avpih1204lcw26h";
20   };
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   ];
31   # Tests are outdated
32   doCheck = false;
34   pythonImportsCheck = [ "asynccmd" ];
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   };