From 0e283d6a2daf0b34336c1712cf40b3e0f5d3141b Mon Sep 17 00:00:00 2001 From: ryneeverett Date: Sat, 16 Nov 2019 04:34:53 +0000 Subject: [PATCH] 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)". --- pkgs/tools/networking/http-prompt/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/networking/http-prompt/default.nix b/pkgs/tools/networking/http-prompt/default.nix index 049fb7a1a6e6..9ed2f000f325 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; }; }