Skip to content

Commit fbe1770

Browse files
committedJan 21, 2018
gns3Packages.server{Stable,Preview}: Unlock the multidict version
1 parent 58e7823 commit fbe1770

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed
 

Diff for: ‎pkgs/applications/networking/gns3/server.nix

+2-29
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,6 @@
44

55
let
66
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-
}));
307
aiohttp-cors = (stdenv.lib.overrideDerivation pythonPackages.aiohttp-cors
318
(oldAttrs:
329
rec {
@@ -37,7 +14,6 @@ let
3714
inherit pname version;
3815
sha256 = "11b51mhr7wjfiikvj3nc5s8c7miin2zdhl3yrzcga4mbpkj892in";
3916
};
40-
propagatedBuildInputs = [ aiohttp ];
4117
}));
4218
in pythonPackages.buildPythonPackage rec {
4319
name = "${pname}-${version}";
@@ -50,16 +26,13 @@ in pythonPackages.buildPythonPackage rec {
5026
sha256 = sha256Hash;
5127
};
5228

53-
propagatedBuildInputs = [ yarl aiohttp aiohttp-cors multidict_3_1_3 ]
29+
propagatedBuildInputs = [ aiohttp-cors ]
5430
++ (with pythonPackages; [
31+
yarl aiohttp multidict
5532
jinja2 psutil zipstream raven jsonschema typing
5633
prompt_toolkit
5734
]);
5835

59-
postPatch = ''
60-
sed -i 's/yarl>=0.11,<0.12/yarl/g' requirements.txt
61-
'';
62-
6336
# Requires network access
6437
doCheck = false;
6538

0 commit comments

Comments
 (0)
Please sign in to comment.