mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 17:39:34 +00:00
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)".
This commit is contained in:
parent
dafbcb986a
commit
0e283d6a2d
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, fetchFromGitHub, pythonPackages, httpie }:
|
{ stdenv, fetchFromGitHub, python3Packages, httpie }:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "http-prompt";
|
pname = "http-prompt";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
|
@ -11,11 +11,11 @@ pythonPackages.buildPythonApplication rec {
|
||||||
sha256 = "0kngz2izcqjphbrdkg489p0xmf65xjc8ki1a2szcc8sgwc7z74xy";
|
sha256 = "0kngz2izcqjphbrdkg489p0xmf65xjc8ki1a2szcc8sgwc7z74xy";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
click
|
click
|
||||||
httpie
|
httpie
|
||||||
parsimonious
|
parsimonious
|
||||||
prompt_toolkit
|
(python.pkgs.callPackage ../../../development/python-modules/prompt_toolkit/1.nix {})
|
||||||
pygments
|
pygments
|
||||||
six
|
six
|
||||||
];
|
];
|
||||||
|
@ -30,6 +30,5 @@ pythonPackages.buildPythonApplication rec {
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ matthiasbeyer ];
|
maintainers = with maintainers; [ matthiasbeyer ];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue