Skip to content

Commit

Permalink
python.pkgs.prompt_toolkit: always use 1 with py2 and 2 with py3
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Nov 21, 2018
1 parent ed6befe commit f0b49c4
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pkgs/applications/misc/haxor-news/default.nix
Expand Up @@ -16,7 +16,7 @@ buildPythonApplication rec {
colorama
requests
pygments
prompt_toolkit_1
prompt_toolkit
six
];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/networking/gns3/server.nix
Expand Up @@ -57,7 +57,7 @@ in pythonPackages.buildPythonPackage rec {
++ (with pythonPackages; [
yarl aiohttp multidict
jinja2 psutil zipstream raven jsonschema typing
prompt_toolkit_1
prompt_toolkit
]);

# Requires network access
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/ipython/5.nix
Expand Up @@ -19,7 +19,7 @@
, requests
, simplegeneric
, traitlets
, prompt_toolkit_1
, prompt_toolkit
, pexpect
, appnope
}:
Expand All @@ -42,7 +42,7 @@ buildPythonPackage rec {
checkInputs = [ nose pygments testpath ] ++ lib.optional isPy27 mock;

propagatedBuildInputs = [
backports_shutil_get_terminal_size decorator pickleshare prompt_toolkit_1
backports_shutil_get_terminal_size decorator pickleshare prompt_toolkit
simplegeneric traitlets requests pathlib2 pexpect
] ++ lib.optionals stdenv.isDarwin [ appnope ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/jupyter_console/5.nix
Expand Up @@ -5,7 +5,7 @@
, jupyter_client
, ipython
, ipykernel
, prompt_toolkit_1
, prompt_toolkit
, pygments
}:

Expand All @@ -23,7 +23,7 @@ buildPythonPackage rec {
jupyter_client
ipython
ipykernel
prompt_toolkit_1
prompt_toolkit
pygments
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/admin/aws_shell/default.nix
Expand Up @@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, awscli
, prompt_toolkit_1
, prompt_toolkit
, boto3
, configobj
, pygments
Expand All @@ -20,7 +20,7 @@ buildPythonPackage rec {
# Why does it propagate packages that are used for testing?
propagatedBuildInputs = [
awscli
prompt_toolkit_1
prompt_toolkit
boto3
configobj
pygments
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/admin/mycli/default.nix
Expand Up @@ -15,7 +15,7 @@ buildPythonApplication rec {
};

propagatedBuildInputs = [
pymysql configobj sqlparse prompt_toolkit_1 pygments click pycrypto cli-helpers
pymysql configobj sqlparse prompt_toolkit pygments click pycrypto cli-helpers
];

checkInputs = [ pytest mock glibcLocales ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/networking/http-prompt/default.nix
Expand Up @@ -16,7 +16,7 @@ pythonPackages.buildPythonApplication rec {
click
httpie
parsimonious
prompt_toolkit_1
prompt_toolkit
pygments
six
];
Expand Down
11 changes: 5 additions & 6 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -196,7 +196,7 @@ in {

astropy = callPackage ../development/python-modules/astropy { };

astroquery = callPackage ../development/python-modules/astroquery { };
astroquery = callPackage ../development/python-modules/astroquery { };

atom = callPackage ../development/python-modules/atom { };

Expand Down Expand Up @@ -3268,10 +3268,9 @@ in {

prettytable = callPackage ../development/python-modules/prettytable { };

prompt_toolkit = self.prompt_toolkit_2;

prompt_toolkit_1 = callPackage ../development/python-modules/prompt_toolkit/1.nix { };
prompt_toolkit_2 = callPackage ../development/python-modules/prompt_toolkit { };
prompt_toolkit = let
filename = if isPy3k then ../development/python-modules/prompt_toolkit else ../development/python-modules/prompt_toolkit/1.nix;
in callPackage filename { };

protobuf = callPackage ../development/python-modules/protobuf {
disabled = isPyPy;
Expand All @@ -3286,7 +3285,7 @@ in {
psycopg2 = callPackage ../development/python-modules/psycopg2 {};

ptpython = callPackage ../development/python-modules/ptpython {
prompt_toolkit = self.prompt_toolkit_2;
prompt_toolkit = self.prompt_toolkit;
};

publicsuffix = callPackage ../development/python-modules/publicsuffix {};
Expand Down

0 comments on commit f0b49c4

Please sign in to comment.