gns3-server: Switch to overrideAttrs

This commit is contained in:
Michael Weiss 2018-12-21 11:02:59 +01:00
parent 679e8fa932
commit 469a36cdb9

View File

@ -4,7 +4,7 @@
let
pythonPackages = python36Packages;
async-timeout = (stdenv.lib.overrideDerivation pythonPackages.async-timeout
async-timeout = pythonPackages.async-timeout.overrideAttrs
(oldAttrs:
rec {
pname = "async-timeout";
@ -13,8 +13,8 @@ let
inherit pname version;
sha256 = "1l3kg062m02mph6rf9rdv8r5c5n356clxa6b6mrn0i77vk9g9kq0";
};
}));
aiohttp = (stdenv.lib.overrideDerivation pythonPackages.aiohttp
});
aiohttp = pythonPackages.aiohttp.overrideAttrs
(oldAttrs:
rec {
pname = "aiohttp";
@ -25,8 +25,8 @@ let
};
propagatedBuildInputs = [ async-timeout ]
++ (with pythonPackages; [ attrs chardet multidict yarl idna-ssl ]);
}));
aiohttp-cors = (stdenv.lib.overrideDerivation pythonPackages.aiohttp-cors
});
aiohttp-cors = pythonPackages.aiohttp-cors.overrideAttrs
(oldAttrs:
rec {
pname = "aiohttp-cors";
@ -40,7 +40,7 @@ let
++ stdenv.lib.optional
(pythonPackages.pythonOlder "3.5")
pythonPackages.typing;
}));
});
in pythonPackages.buildPythonPackage rec {
name = "${pname}-${version}";
pname = "gns3-server";