signalbackup-tools: 20241220 -> 20250106 (#371523)
[NixPkgs.git] / pkgs / development / python-modules / asynccmd / default.nix
blob1c19098cd4ddc1bb61cdb59fa00c8adb24448b2d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
6   pythonOlder,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "asynccmd";
12   version = "0.2.4";
13   pyproject = true;
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "valentinmk";
19     repo = "asynccmd";
20     tag = version;
21     hash = "sha256-0AjOKAEiwHi3AkzMGRvE/czTCfShXQAm8mDz98EESgs=";
22   };
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   ];
33   build-system = [ setuptools ];
35   # Tests are outdated
36   doCheck = false;
38   pythonImportsCheck = [ "asynccmd" ];
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   };