diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
commit | c4625b175f8200f643fd6e11010932ea44c78433 (patch) | |
tree | bce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit | |
parent | 49f735974dd103039ddc4cb576bb76555164a9e7 (diff) | |
parent | d661aa56a8843e991261510c1bb28fdc2f6975ae (diff) |
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie
git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7
git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit/1.nix | 38 | ||||
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit/default.nix | 35 |
2 files changed, 73 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit/1.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit/1.nix new file mode 100644 index 000000000000..bc39a8c92297 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit/1.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, docopt +, six +, wcwidth +, pygments +}: + +buildPythonPackage rec { + pname = "prompt_toolkit"; + version = "1.0.18"; + + src = fetchPypi { + inherit pname version; + sha256 = "dd4fca02c8069497ad931a2d09914c6b0d1b50151ce876bc15bde4c747090126"; + }; + checkPhase = '' + rm prompt_toolkit/win32_types.py + py.test -k 'not test_pathcompleter_can_expanduser' + ''; + + checkInputs = [ pytest ]; + propagatedBuildInputs = [ docopt six wcwidth pygments ]; + + meta = { + description = "Python library for building powerful interactive command lines"; + longDescription = '' + prompt_toolkit could be a replacement for readline, but it can be + much more than that. It is cross-platform, everything that you build + with it should run fine on both Unix and Windows systems. Also ships + with a nice interactive Python shell (called ptpython) built on top. + ''; + homepage = "https://github.com/jonathanslenders/python-prompt-toolkit"; + license = lib.licenses.bsd3; + }; +} diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit/default.nix new file mode 100644 index 000000000000..47fbace69df0 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/prompt_toolkit/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, six +, wcwidth +}: + +buildPythonPackage rec { + pname = "prompt_toolkit"; + version = "3.0.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "7630ab85a23302839a0f26b31cc24f518e6155dea1ed395ea61b42c45941b6a6"; + }; + checkPhase = '' + py.test -k 'not test_pathcompleter_can_expanduser' + ''; + + checkInputs = [ pytest ]; + propagatedBuildInputs = [ six wcwidth ]; + + meta = { + description = "Python library for building powerful interactive command lines"; + longDescription = '' + prompt_toolkit could be a replacement for readline, but it can be + much more than that. It is cross-platform, everything that you build + with it should run fine on both Unix and Windows systems. Also ships + with a nice interactive Python shell (called ptpython) built on top. + ''; + homepage = "https://github.com/jonathanslenders/python-prompt-toolkit"; + license = lib.licenses.bsd3; + }; +} |