···1-{ lib, buildPythonPackage, fetchPypi, pythonOlder }:
00000023# This package provides a binary "apython" which sometimes invokes
4# [sys.executable, '-m', 'aioconsole'] as a subprocess. If apython is
···10# wrapped to be able to find aioconsole and any other packages.
11buildPythonPackage rec {
12 pname = "aioconsole";
13- version = "0.3.1";
14 disabled = pythonOlder "3.6";
1516- src = fetchPypi {
17- inherit pname version;
18- sha256 = "7c038bb40b7690bf5be6b17154830b7bff25e7be1c02d8420a346c3efbd5d8e5";
0019 };
2021- # hardcodes a test dependency on an old version of pytest-asyncio
22- doCheck = false;
002324- meta = {
000000025 description = "Asynchronous console and interfaces for asyncio";
26 homepage = "https://github.com/vxgmichel/aioconsole";
27- license = lib.licenses.gpl3;
28- maintainers = [ lib.maintainers.catern ];
29 };
30}
···1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytest-asyncio
5+, pytestCheckHook
6+, pythonOlder
7+}:
89# This package provides a binary "apython" which sometimes invokes
10# [sys.executable, '-m', 'aioconsole'] as a subprocess. If apython is
···16# wrapped to be able to find aioconsole and any other packages.
17buildPythonPackage rec {
18 pname = "aioconsole";
19+ version = "0.3.2";
20 disabled = pythonOlder "3.6";
2122+ src = fetchFromGitHub {
23+ owner = "vxgmichel";
24+ repo = pname;
25+ rev = "v${version}";
26+ sha256 = "0bximaalakw1dxan1lxar33l8hnmxqn0fg62hmdmprmra72z4bm8";
27 };
2829+ checkInputs = [
30+ pytest-asyncio
31+ pytestCheckHook
32+ ];
3334+ postPatch = ''
35+ substituteInPlace setup.cfg \
36+ --replace "--cov aioconsole --count 2" ""
37+ '';
38+39+ pythonImportsCheck = [ "aioconsole" ];
40+41+ meta = with lib; {
42 description = "Asynchronous console and interfaces for asyncio";
43 homepage = "https://github.com/vxgmichel/aioconsole";
44+ license = licenses.gpl3Only;
45+ maintainers = with maintainers; [ catern ];
46 };
47}