1{ lib, buildPythonPackage, fetchPypi }: 2 3# This package provides a binary "apython" which sometimes invokes 4# [sys.executable, '-m', 'aioconsole'] as a subprocess. If apython is 5# run directly out of this derivation, it won't work, because 6# sys.executable will point to a Python binary that is not wrapped to 7# be able to find aioconsole. 8# However, apython will work fine when using python##.withPackages, 9# because with python##.withPackages the sys.executable is already 10# wrapped to be able to find aioconsole and any other packages. 11buildPythonPackage rec { 12 pname = "aioconsole"; 13 version = "0.1.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "17bnfcp0gacnmpdam6byb7rwhqibw57f736bbgk45w4cy2lglj3y"; 18 }; 19 20 # hardcodes a test dependency on an old version of pytest-asyncio 21 doCheck = false; 22 23 meta = { 24 description = "Asynchronous console and interfaces for asyncio"; 25 homepage = https://github.com/vxgmichel/aioconsole; 26 license = lib.licenses.gpl3; 27 maintainers = [ lib.maintainers.catern ]; 28 }; 29}