Merge pull request #135044 from fabaff/bump-aioconsole

python3Packages.aioconsole: 0.3.1 -> 0.3.2

authored by Fabian Affolter and committed by GitHub baabfbf9 c4dba287

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