Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / aioconsole / default.nix
blobc198676e3eb0192aa7fb3c0654ed54924886d636
1 { lib, buildPythonPackage, fetchPypi, pythonOlder }:
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.
11 buildPythonPackage rec {
12   pname = "aioconsole";
13   version = "0.3.1";
14   disabled = pythonOlder "3.6";
16   src = fetchPypi {
17     inherit pname version;
18     sha256 = "7c038bb40b7690bf5be6b17154830b7bff25e7be1c02d8420a346c3efbd5d8e5";
19   };
21   # hardcodes a test dependency on an old version of pytest-asyncio
22   doCheck = false;
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   };