nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, six
7, wcwidth
8}:
9
10buildPythonPackage rec {
11 pname = "prompt-toolkit";
12 version = "3.0.28";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 pname = "prompt_toolkit";
19 inherit version;
20 sha256 = "sha256-nxzRax6GwpaPJRnX+zHdnWaZFvUVYSwmnRTp7VK1FlA=";
21 };
22
23 propagatedBuildInputs = [
24 six
25 wcwidth
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 disabledTests = [
33 "test_pathcompleter_can_expanduser"
34 ];
35
36 pythonImportsCheck = [
37 "prompt_toolkit"
38 ];
39
40 meta = with lib; {
41 description = "Python library for building powerful interactive command lines";
42 longDescription = ''
43 prompt_toolkit could be a replacement for readline, but it can be
44 much more than that. It is cross-platform, everything that you build
45 with it should run fine on both Unix and Windows systems. Also ships
46 with a nice interactive Python shell (called ptpython) built on top.
47 '';
48 homepage = "https://github.com/jonathanslenders/python-prompt-toolkit";
49 license = licenses.bsd3;
50 maintainers = with maintainers; [ ];
51 };
52}