turses: fix build

+43 -35
+41
pkgs/applications/networking/instant-messengers/turses/default.nix
···
··· 1 + { stdenv, python3Packages }: 2 + 3 + with stdenv.lib; 4 + with python3Packages; 5 + 6 + buildPythonPackage rec { 7 + name = "${pname}-${version}"; 8 + pname = "turses"; 9 + version = "0.3.1"; 10 + 11 + src = fetchPypi { 12 + inherit pname version; 13 + sha256 = "15mkhm3b5ka42h8qph0mhh8izfc1200v7651c62k7ldcs50ib9j6"; 14 + }; 15 + 16 + buildInputs = [ mock pytest coverage tox ]; 17 + propagatedBuildInputs = [ urwid tweepy future ]; 18 + 19 + checkPhase = '' 20 + TMP_TURSES=`echo turses-$RANDOM` 21 + mkdir $TMP_TURSES 22 + PYTHONPATH=tests:$PYTHONPATH HOME=$TMP_TURSES py.test tests/ 23 + rm -rf $TMP_TURSES 24 + ''; 25 + 26 + patchPhase = '' 27 + sed -i -e 's|urwid==1.3.0|urwid==${getVersion urwid}|' setup.py 28 + sed -i -e "s|future==0.14.3|future==${getVersion future}|" setup.py 29 + sed -i -e "s|tweepy==3.3.0|tweepy==${getVersion tweepy}|" setup.py 30 + sed -i -e "s|config.generate_config_file.assert_called_once()|assert config.generate_config_file.call_count == 1|" tests/test_config.py 31 + sed -i -e "s|self.observer.update.assert_called_once()|assert self.observer.update.call_count == 1|" tests/test_meta.py 32 + ''; 33 + 34 + meta = with stdenv.lib; { 35 + homepage = https://github.com/alejandrogomez/turses; 36 + description = "A Twitter client for the console"; 37 + license = licenses.gpl3; 38 + maintainers = with maintainers; [ garbas ]; 39 + platforms = platforms.linux; 40 + }; 41 + }
+2
pkgs/top-level/all-packages.nix
··· 4611 4612 ttylog = callPackage ../tools/misc/ttylog { }; 4613 4614 twitterBootstrap = callPackage ../development/web/twitter-bootstrap {}; 4615 twitterBootstrap3 = callPackage ../development/web/twitter-bootstrap/v3.nix {}; 4616
··· 4611 4612 ttylog = callPackage ../tools/misc/ttylog { }; 4613 4614 + turses = callPackage ../applications/networking/instant-messengers/turses { }; 4615 + 4616 twitterBootstrap = callPackage ../development/web/twitter-bootstrap {}; 4617 twitterBootstrap3 = callPackage ../development/web/twitter-bootstrap/v3.nix {}; 4618
-35
pkgs/top-level/python-packages.nix
··· 22972 }; 22973 22974 22975 - turses = buildPythonPackage (rec { 22976 - name = "turses-0.3.1"; 22977 - disabled = isPyPy || isPy3k; 22978 - 22979 - src = pkgs.fetchurl { 22980 - url = "mirror://pypi/t/turses/${name}.tar.gz"; 22981 - sha256 = "15mkhm3b5ka42h8qph0mhh8izfc1200v7651c62k7ldcs50ib9j6"; 22982 - }; 22983 - 22984 - buildInputs = with self; [ mock pytest coverage tox ]; 22985 - propagatedBuildInputs = with self; [ urwid tweepy future ] ++ optional isPy26 argparse; 22986 - 22987 - checkPhase = '' 22988 - TMP_TURSES=`echo turses-$RANDOM` 22989 - mkdir $TMP_TURSES 22990 - HOME=$TMP_TURSES py.test tests/ 22991 - rm -rf $TMP_TURSES 22992 - ''; 22993 - 22994 - patchPhase = '' 22995 - sed -i -e "s|future==0.14.3|future==${pkgs.lib.getVersion self.future}|" setup.py 22996 - sed -i -e "s|tweepy==3.3.0|tweepy==${pkgs.lib.getVersion self.tweepy}|" setup.py 22997 - sed -i -e "s|config.generate_config_file.assert_called_once()|assert config.generate_config_file.call_count == 1|" tests/test_config.py 22998 - sed -i -e "s|self.observer.update.assert_called_once()|assert self.observer.update.call_count == 1|" tests/test_meta.py 22999 - ''; 23000 - 23001 - meta = { 23002 - homepage = https://github.com/alejandrogomez/turses; 23003 - description = "A Twitter client for the console"; 23004 - license = licenses.gpl3; 23005 - maintainers = with maintainers; [ garbas ]; 23006 - platforms = platforms.linux; 23007 - }; 23008 - }); 23009 - 23010 tweepy = buildPythonPackage (rec { 23011 name = "tweepy-3.5.0"; 23012
··· 22972 }; 22973 22974 22975 tweepy = buildPythonPackage (rec { 22976 name = "tweepy-3.5.0"; 22977