Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 1.1 kB view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder }: 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.3.1"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "7c038bb40b7690bf5be6b17154830b7bff25e7be1c02d8420a346c3efbd5d8e5"; 19 }; 20 21 # hardcodes a test dependency on an old version of pytest-asyncio 22 doCheck = false; 23 24 meta = { 25 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}