Merge pull request #46687 from mbode/salt_darwin
salt: fix darwin build by specifying dependency on tornado 4
This commit is contained in:
commit
b78348d1a4
@ -8,12 +8,25 @@
|
|||||||
, singledispatch
|
, singledispatch
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, futures
|
, futures
|
||||||
|
, version ? "5.1"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
versionMap = {
|
||||||
|
"4.5.3" = {
|
||||||
|
sha256 = "02jzd23l4r6fswmwxaica9ldlyc2p6q8dk6dyff7j58fmdzf853d";
|
||||||
|
};
|
||||||
|
"5.1" = {
|
||||||
|
sha256 = "4f66a2172cb947387193ca4c2c3e19131f1c70fa8be470ddbbd9317fd0801582";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
|
with versionMap.${version};
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tornado";
|
pname = "tornado";
|
||||||
version = "5.1";
|
inherit version;
|
||||||
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ backports_abc certifi singledispatch ]
|
propagatedBuildInputs = [ backports_abc certifi singledispatch ]
|
||||||
++ lib.optional (pythonOlder "3.5") backports_ssl_match_hostname
|
++ lib.optional (pythonOlder "3.5") backports_ssl_match_hostname
|
||||||
@ -26,8 +39,7 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname sha256 version;
|
||||||
sha256 = "4f66a2172cb947387193ca4c2c3e19131f1c70fa8be470ddbbd9317fd0801582";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -23,7 +23,7 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
pyyaml
|
pyyaml
|
||||||
pyzmq
|
pyzmq
|
||||||
requests
|
requests
|
||||||
tornado
|
tornado_4
|
||||||
] ++ stdenv.lib.optional (!pythonPackages.isPy3k) [
|
] ++ stdenv.lib.optional (!pythonPackages.isPy3k) [
|
||||||
futures
|
futures
|
||||||
] ++ extraInputs;
|
] ++ extraInputs;
|
||||||
|
@ -14901,6 +14901,7 @@ EOF
|
|||||||
};
|
};
|
||||||
|
|
||||||
tornado = callPackage ../development/python-modules/tornado { };
|
tornado = callPackage ../development/python-modules/tornado { };
|
||||||
|
tornado_4 = callPackage ../development/python-modules/tornado { version = "4.5.3"; };
|
||||||
|
|
||||||
tokenlib = buildPythonPackage rec {
|
tokenlib = buildPythonPackage rec {
|
||||||
name = "tokenlib-${version}";
|
name = "tokenlib-${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user