4
4
5
5
let
6
6
pythonPackages = python3Packages ;
7
- # TODO: Not sure if all these overwrites are really required...
8
- # Upstream seems to have some reasons (bugs, incompatibilities) though.
9
- multidict_3_1_3 =
10
- ( stdenv . lib . overrideDerivation pythonPackages . multidict ( oldAttrs :
11
- rec {
12
- pname = "multidict" ;
13
- version = "3.1.3" ;
14
- name = "${ pname } -${ version } " ;
15
- src = pythonPackages . fetchPypi {
16
- inherit pname version ;
17
- sha256 = "04kdxh19m41c6vbshwk8jfbidsfsqn7mn0abvx09nyg78sh80pw7" ;
18
- } ;
19
- doInstallCheck = false ;
20
- } ) ) ;
21
- yarl = ( stdenv . lib . overrideDerivation pythonPackages . yarl
22
- ( oldAttrs :
23
- { propagatedBuildInputs = [ multidict_3_1_3 pythonPackages . idna ] ; } ) ) ;
24
- aiohttp = ( stdenv . lib . overrideDerivation pythonPackages . aiohttp
25
- ( oldAttrs :
26
- rec {
27
- propagatedBuildInputs = [ yarl multidict_3_1_3 ]
28
- ++ ( with pythonPackages ; [ async-timeout chardet ] ) ;
29
- } ) ) ;
30
7
aiohttp-cors = ( stdenv . lib . overrideDerivation pythonPackages . aiohttp-cors
31
8
( oldAttrs :
32
9
rec {
37
14
inherit pname version ;
38
15
sha256 = "11b51mhr7wjfiikvj3nc5s8c7miin2zdhl3yrzcga4mbpkj892in" ;
39
16
} ;
40
- propagatedBuildInputs = [ aiohttp ] ;
41
17
} ) ) ;
42
18
in pythonPackages . buildPythonPackage rec {
43
19
name = "${ pname } -${ version } " ;
@@ -50,16 +26,13 @@ in pythonPackages.buildPythonPackage rec {
50
26
sha256 = sha256Hash ;
51
27
} ;
52
28
53
- propagatedBuildInputs = [ yarl aiohttp aiohttp -cors multidict_3_1_3 ]
29
+ propagatedBuildInputs = [ aiohttp-cors ]
54
30
++ ( with pythonPackages ; [
31
+ yarl aiohttp multidict
55
32
jinja2 psutil zipstream raven jsonschema typing
56
33
prompt_toolkit
57
34
] ) ;
58
35
59
- postPatch = ''
60
- sed -i 's/yarl>=0.11,<0.12/yarl/g' requirements.txt
61
- '' ;
62
-
63
36
# Requires network access
64
37
doCheck = false ;
65
38
0 commit comments