From 9ffd8e988f85fcfa6dfa40e4cfabbccfd395718a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 21 Aug 2021 10:35:58 +0200 Subject: [PATCH] python3Packages.aioconsole: 0.3.1 -> 0.3.2 --- .../python-modules/aioconsole/default.nix | 37 ++++++++++++++----- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/aioconsole/default.nix b/pkgs/development/python-modules/aioconsole/default.nix index c198676e3eb0..f56d31b034dd 100644 --- a/pkgs/development/python-modules/aioconsole/default.nix +++ b/pkgs/development/python-modules/aioconsole/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: # This package provides a binary "apython" which sometimes invokes # [sys.executable, '-m', 'aioconsole'] as a subprocess. If apython is @@ -10,21 +16,32 @@ # wrapped to be able to find aioconsole and any other packages. buildPythonPackage rec { pname = "aioconsole"; - version = "0.3.1"; + version = "0.3.2"; disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - sha256 = "7c038bb40b7690bf5be6b17154830b7bff25e7be1c02d8420a346c3efbd5d8e5"; + src = fetchFromGitHub { + owner = "vxgmichel"; + repo = pname; + rev = "v${version}"; + sha256 = "0bximaalakw1dxan1lxar33l8hnmxqn0fg62hmdmprmra72z4bm8"; }; - # hardcodes a test dependency on an old version of pytest-asyncio - doCheck = false; + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; - meta = { + postPatch = '' + substituteInPlace setup.cfg \ + --replace "--cov aioconsole --count 2" "" + ''; + + pythonImportsCheck = [ "aioconsole" ]; + + meta = with lib; { description = "Asynchronous console and interfaces for asyncio"; homepage = "https://github.com/vxgmichel/aioconsole"; - license = lib.licenses.gpl3; - maintainers = [ lib.maintainers.catern ]; + license = licenses.gpl3Only; + maintainers = with maintainers; [ catern ]; }; }