git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #30922 from flokli/bpython

Update bpython to 0.17

commitd6532711a122c3277f65c6522c9bf9f4067176c2 authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateSun 29 Oct 2017, 15:16 (9 years ago) parent1450f6c978a9ba
5 files changed+108−36
pkgs/development/python-modules/bpython/default.nix+27 pkgs/development/python-modules/curtsies/default.nix+27 pkgs/development/python-modules/pyte/default.nix+28 pkgs/development/python-modules/urwid/default.nix+20 pkgs/top-level/python-packages.nix+6−36
pkgs/development/python-modules/bpython/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, buildPythonPackage, fetchurl, pygments, greenlet, curtsies, urwid, requests, mock }:
2+
3+buildPythonPackage rec {
4+ pname = "bpython";
5+ version = "0.17";
6+ name = "${pname}-${version}";
7+
8+ # 0.17 is still missing on PyPI, https://github.com/bpython/bpython/issues/706
9+ src = fetchurl {
10+ url = "https://bpython-interpreter.org/releases/${pname}-${version}.tar.gz";
11+ sha256 = "13fyyx06645ikvmj9zmkixr12kzk1c3a3f9s9i2rvaczjycn82lz";
12+ };
13+
14+ propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
15+
16+ checkInputs = [ mock ];
17+
18+ # tests fail: https://github.com/bpython/bpython/issues/712
19+ doCheck = false;
20+
21+ meta = with stdenv.lib; {
22+ description = "A fancy curses interface to the Python interactive interpreter";
23+ homepage = "https://bpython-interpreter.org/";
24+ license = licenses.mit;
25+ maintainers = with maintainers; [ flokli ];
26+ };
27+}
pkgs/development/python-modules/curtsies/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }:
2+
3+buildPythonPackage rec {
4+ pname = "curtsies";
5+ version = "0.2.11";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc";
11+ };
12+
13+ propagatedBuildInputs = [ blessings wcwidth pyte ];
14+
15+ checkInputs = [ nose mock pytest ];
16+
17+ checkPhase = ''
18+ py.test
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ description = "Curses-like terminal wrapper, with colored strings!";
23+ homepage = https://pypi.python.org/pypi/curtsies;
24+ license = licenses.mit;
25+ maintainers = with maintainers; [ flokli ];
26+ };
27+}
pkgs/development/python-modules/pyte/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, buildPythonPackage, fetchPypi, pytest, pytestrunner, wcwidth }:
2+
3+buildPythonPackage rec {
4+ pname = "pyte";
5+ version = "0.7.0";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1an54hvyjm8gncx8cgabz9mkpgjkdb0bkyjlkh7g7f94nr3wnfl7";
11+ };
12+
13+ propagatedBuildInputs = [ wcwidth ];
14+
15+ checkInputs = [ pytest pytestrunner ];
16+
17+ # tries to write to os.path.dirname(__file__) in test_input_output
18+ checkPhase = ''
19+ py.test -k "not test_input_output"
20+ '';
21+
22+ meta = with stdenv.lib; {
23+ description = "Simple VTXXX-compatible linux terminal emulator";
24+ homepage = https://github.com/selectel/pyte;
25+ license = licenses.lgpl3;
26+ maintainers = with maintainers; [ flokli ];
27+ };
28+}
pkgs/development/python-modules/urwid/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage (rec {
4+ pname = "urwid";
5+ version = "1.3.1";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng";
11+ };
12+
13+ meta = with stdenv.lib; {
14+ description = "A full-featured console (xterm et al.) user interface library";
15+ homepage = http://excess.org/urwid;
16+ repositories.git = git://github.com/wardi/urwid.git;
17+ license = licenses.lgpl21;
18+ maintainers = with maintainers; [ garbas ];
19+ };
20+})
pkgs/top-level/python-packages.nix+6−36
@@ -2061,23 +2061,7 @@ in {
20612061 };
20622062 };
20632063
2064−
2065− bpython = buildPythonPackage rec {
2066− name = "bpython-0.12";
2067− src = pkgs.fetchurl {
2068− url = "http://www.bpython-interpreter.org/releases/bpython-0.12.tar.gz";
2069− sha256 = "1ilf58qq7sazmcgg4f1wswbhcn2gb8qbbrpgm6gf0j2lbm60gabl";
2070− };
2071−
2072− propagatedBuildInputs = with self; [ pygments ];
2073− doCheck = false;
2074−
2075− meta = {
2076− description = "UNKNOWN";
2077− homepage = "UNKNOWN";
2078− maintainers = with maintainers; [ domenkozar ];
2079− };
2080− };
2064+ bpython = callPackage ../development/python-modules/bpython {};
20812065
20822066 bsddb3 = buildPythonPackage rec {
20832067 name = "bsddb3-${version}";
@@ -3324,6 +3308,8 @@ in {
33243308 doCheck = false;
33253309 };
33263310
3311+ curtsies = callPackage ../development/python-modules/curtsies { };
3312+
33273313 oslo-vmware = buildPythonPackage rec {
33283314 name = "oslo.vmware-${version}";
33293315 version = "1.22.0";
@@ -12364,6 +12350,8 @@ in {
1236412350 };
1236512351 };
1236612352
12353+ pyte = callPackage ../development/python-modules/pyte { };
12354+
1236712355 graphviz = buildPythonPackage rec {
1236812356 name = "graphviz-${version}";
1236912357 version = "0.5.2";
@@ -21587,25 +21575,7 @@ in {
2158721575
2158821576 urlgrabber = callPackage ../development/python-modules/urlgrabber {};
2158921577
21590− urwid = buildPythonPackage (rec {
21591− name = "urwid-1.3.1";
21592−
21593− # multiple: NameError: name 'evl' is not defined
21594− doCheck = false;
21595−
21596− src = pkgs.fetchurl {
21597− url = "mirror://pypi/u/urwid/${name}.tar.gz";
21598− sha256 = "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng";
21599− };
21600−
21601− meta = {
21602− description = "A full-featured console (xterm et al.) user interface library";
21603− homepage = http://excess.org/urwid;
21604− repositories.git = git://github.com/wardi/urwid.git;
21605− license = licenses.lgpl21;
21606− maintainers = with maintainers; [ garbas ];
21607− };
21608− });
21578+ urwid = callPackage ../development/python-modules/urwid {};
2160921579
2161021580 urwidtrees = buildPythonPackage rec {
2161121581 name = "urwidtrees-${rev}";