@ -3,35 +3,7 @@
{ stdenv , python3 , fetchFromGitHub }:
let
python = if stable then python3 . override {
packageOverrides = self : super : {
async-timeout = super . async-timeout . overridePythonAttrs ( oldAttrs : rec {
version = " 2 . 0 . 1 " ;
src = oldAttrs . src . override {
inherit version ;
sha256 = " 1 l 3 k g 0 6 2 m 0 2 m p h 6 r f 9 r d v 8 r 5 c 5 n 3 5 6 c l x a 6 b 6 m r n 0 i 7 7 v k 9 g 9 k q 0 " ;
} ;
} ) ;
aiohttp = super . aiohttp . overridePythonAttrs ( oldAttrs : rec {
version = " 2 . 3 . 1 0 " ;
src = oldAttrs . src . override {
inherit version ;
sha256 = " 8 a d d a 6 5 8 3 b a 4 3 8 a 4 c 7 0 6 9 3 3 7 4 e 1 0 b 6 0 1 6 8 6 6 3 f f a 6 5 6 4 c 5 c 7 5 d 3 c 7 a 9 0 5 5 2 9 0 9 6 4 " ;
} ;
propagatedBuildInputs = with self ; [ async-timeout attrs chardet multidict yarl idna-ssl ] ;
doCheck = false ;
} ) ;
aiohttp-cors = super . aiohttp-cors . overridePythonAttrs ( oldAttrs : rec {
version = " 0 . 6 . 0 " ;
src = oldAttrs . src . override {
inherit version ;
sha256 = " 1 r 0 m b 4 d w 0 d c 1 l p i 5 4 d k 5 v x q s 0 6 n y h v a g p 7 6 l y r v k 7 r d 9 4 z 5 m j k d 4 " ;
} ;
propagatedBuildInputs = with self ; [ aiohttp ]
++ stdenv . lib . optional ( pythonOlder " 3 . 5 " ) typing ;
} ) ;
} ;
} else python3 ;
python = python3 ;
in python . pkgs . buildPythonPackage {
pname = " g n s 3 - s e r v e r " ;
@ -50,10 +22,10 @@ in python.pkgs.buildPythonPackage {
'' ;
propagatedBuildInputs = with python . pkgs ; [
aiohttp-cors yarl aiohttp multidict
jinja2 psutil zipstream raven jsonschema
aiohttp-cors yarl aiohttp multidict setuptools
jinja2 psutil zipstream raven jsonschema distro async_generator aiofiles
( python . pkgs . callPackage ../../../development/python-modules/prompt_toolkit/1.nix { } )
] ++ stdenv . lib . optional ( ! stable ) [ distro async_generator aiofiles ] ;
] ;
# Requires network access
doCheck = false ;