27
pkgs/development/python-modules/bpython/default.nix
Normal file
27
pkgs/development/python-modules/bpython/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv, buildPythonPackage, fetchurl, pygments, greenlet, curtsies, urwid, requests, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bpython";
|
||||
version = "0.17";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
# 0.17 is still missing on PyPI, https://github.com/bpython/bpython/issues/706
|
||||
src = fetchurl {
|
||||
url = "https://bpython-interpreter.org/releases/${pname}-${version}.tar.gz";
|
||||
sha256 = "13fyyx06645ikvmj9zmkixr12kzk1c3a3f9s9i2rvaczjycn82lz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
|
||||
|
||||
checkInputs = [ mock ];
|
||||
|
||||
# tests fail: https://github.com/bpython/bpython/issues/712
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A fancy curses interface to the Python interactive interpreter";
|
||||
homepage = "https://bpython-interpreter.org/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ flokli ];
|
||||
};
|
||||
}
|
||||
27
pkgs/development/python-modules/curtsies/default.nix
Normal file
27
pkgs/development/python-modules/curtsies/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "curtsies";
|
||||
version = "0.2.11";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ blessings wcwidth pyte ];
|
||||
|
||||
checkInputs = [ nose mock pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Curses-like terminal wrapper, with colored strings!";
|
||||
homepage = https://pypi.python.org/pypi/curtsies;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ flokli ];
|
||||
};
|
||||
}
|
||||
28
pkgs/development/python-modules/pyte/default.nix
Normal file
28
pkgs/development/python-modules/pyte/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pytest, pytestrunner, wcwidth }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyte";
|
||||
version = "0.7.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1an54hvyjm8gncx8cgabz9mkpgjkdb0bkyjlkh7g7f94nr3wnfl7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ wcwidth ];
|
||||
|
||||
checkInputs = [ pytest pytestrunner ];
|
||||
|
||||
# tries to write to os.path.dirname(__file__) in test_input_output
|
||||
checkPhase = ''
|
||||
py.test -k "not test_input_output"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simple VTXXX-compatible linux terminal emulator";
|
||||
homepage = https://github.com/selectel/pyte;
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ flokli ];
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/urwid/default.nix
Normal file
20
pkgs/development/python-modules/urwid/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage (rec {
|
||||
pname = "urwid";
|
||||
version = "1.3.1";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A full-featured console (xterm et al.) user interface library";
|
||||
homepage = http://excess.org/urwid;
|
||||
repositories.git = git://github.com/wardi/urwid.git;
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user