diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2021-08-22 09:30:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 09:30:22 +0200 |
commit | baabfbf9e55347f76b8297f57b15eb3e29eb5ce3 (patch) | |
tree | ef092ecb871c9e9b7414ebc5917eaefca61de8c1 | |
parent | c4dba2871cc781ca31c45316525ce384a02084c9 (diff) | |
parent | 9ffd8e988f85fcfa6dfa40e4cfabbccfd395718a (diff) |
Merge pull request #135044 from fabaff/bump-aioconsole
python3Packages.aioconsole: 0.3.1 -> 0.3.2
-rw-r--r-- | pkgs/development/python-modules/aioconsole/default.nix | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/aioconsole/default.nix b/pkgs/development/python-modules/aioconsole/default.nix index c198676e3eb01..f56d31b034ddd 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 ]; }; } |