1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

pythonPackages.inquirer: init at 2.6.3

This commit is contained in:
Marek Mahut 2019-06-15 10:42:30 +02:00
parent 57e940205f
commit d624a26c6a
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ stdenv, buildPythonPackage, fetchPypi, python-editor, readchar, blessings, pytest, pytestcov, pexpect, pytest-mock }:
buildPythonPackage rec {
pname = "inquirer";
version = "2.6.3";
src = fetchPypi {
inherit pname version;
sha256 = "01lf51y3bxsxkghbdk9hr42yvihpwi2s5zpxnra3bx41r35msvjz";
};
propagatedBuildInputs = [ python-editor readchar blessings ];
# No real changes in 2.0.0...e0edfa3
postPatch = ''
substituteInPlace setup.py \
--replace "readchar == 2.0.1" "readchar >= 2.0.0"
'';
checkInputs = [ pytest pytestcov pexpect pytest-mock ];
checkPhase = ''
pytest --cov-report=term-missing --cov inquirer --no-cov-on-fail tests/unit tests/integration
'';
meta = with stdenv.lib; {
homepage = "https://github.com/magmax/python-inquirer";
description = "A collection of common interactive command line user interfaces, based on Inquirer.js";
license = licenses.mit;
maintainers = [ maintainers.mmahut ];
};
}

View file

@ -508,6 +508,8 @@ in {
intelhex = callPackage ../development/python-modules/intelhex { };
inquirer = callPackage ../development/python-modules/inquirer { };
jira = callPackage ../development/python-modules/jira { };
jwcrypto = callPackage ../development/python-modules/jwcrypto { };