Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 29 lines 1.0 kB view raw
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.15"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0gbl08p89959g8dqy2vainppg3kyf948xlh18p7iwk5p0mw5d3j9"; 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}