pythonPackages.inquirer: fix build
This commit is contained in:
parent
dbf902b13d
commit
0f7b1d4a72
@ -1,20 +1,23 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, python-editor, readchar, blessings, pytest, pytestcov, pexpect, pytest-mock }:
|
{ stdenv, buildPythonPackage, fetchFromGitHub, python-editor, readchar, blessed, pytest, pytestcov, pexpect, pytest-mock }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "inquirer";
|
pname = "inquirer";
|
||||||
version = "2.7.0";
|
version = "2.7.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
# PyPi archive currently broken: https://github.com/magmax/python-inquirer/issues/106
|
||||||
inherit pname version;
|
src = fetchFromGitHub rec {
|
||||||
sha256 = "e819188de0ca7985a99c282176c6f50fb08b0d33867fd1965d3f3e97d6c8f83f";
|
owner = "magmax";
|
||||||
|
repo = "python-inquirer";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "152l5qjgkag8zkr69ax2i5s8xcac1qvyngisrplbnbzwbpf77d0d";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ python-editor readchar blessings ];
|
propagatedBuildInputs = [ blessed python-editor readchar ];
|
||||||
|
|
||||||
# No real changes in 2.0.0...e0edfa3
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace requirements.txt \
|
||||||
--replace "readchar == 2.0.1" "readchar >= 2.0.0"
|
--replace "blessed==1.17.6" "blessed~=1.17" \
|
||||||
|
--replace "readchar==2.0.1" "readchar>=2.0.0"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ pytest pytestcov pexpect pytest-mock ];
|
checkInputs = [ pytest pytestcov pexpect pytest-mock ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user