diff options
author | ryneeverett <ryneeverett@gmail.com> | 2019-11-16 04:34:53 +0000 |
---|---|---|
committer | ryneeverett <ryneeverett@gmail.com> | 2019-11-16 04:34:53 +0000 |
commit | 0e283d6a2daf0b34336c1712cf40b3e0f5d3141b (patch) | |
tree | 54481411ba657672f94781208a4a63089a7544f0 | |
parent | dafbcb986ab850fb68f8edd6defca2b3c9b0857f (diff) |
http-prompt: fix build
I don't really understand why this works: - Building with python3 because python2 fails with "error: invalid command 'bdist_wheel'". - Specifying the path to prompt_toolkit v1 because otherwise the dependency resolution fails with "ERROR: Could not find a version that satisfies the requirement prompt-toolkit<2.0.0,>=1.0.0 (from http-prompt==1.0.0) (from versions: none) ERROR: No matching distribution found for prompt-toolkit<2.0.0,>=1.0.0 (from http-prompt==1.0.0)".
-rw-r--r-- | pkgs/tools/networking/http-prompt/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/tools/networking/http-prompt/default.nix b/pkgs/tools/networking/http-prompt/default.nix index 049fb7a1a6e67..9ed2f000f3252 100644 --- a/pkgs/tools/networking/http-prompt/default.nix +++ b/pkgs/tools/networking/http-prompt/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchFromGitHub, pythonPackages, httpie }: +{ stdenv, fetchFromGitHub, python3Packages, httpie }: -pythonPackages.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "http-prompt"; version = "1.0.0"; @@ -11,11 +11,11 @@ pythonPackages.buildPythonApplication rec { sha256 = "0kngz2izcqjphbrdkg489p0xmf65xjc8ki1a2szcc8sgwc7z74xy"; }; - propagatedBuildInputs = with pythonPackages; [ + propagatedBuildInputs = with python3Packages; [ click httpie parsimonious - prompt_toolkit + (python.pkgs.callPackage ../../../development/python-modules/prompt_toolkit/1.nix {}) pygments six ]; @@ -30,6 +30,5 @@ pythonPackages.buildPythonApplication rec { license = licenses.mit; maintainers = with maintainers; [ matthiasbeyer ]; platforms = platforms.linux ++ platforms.darwin; - broken = true; }; } |