lol

pythonPackages: turses 0.2.23->0.3.1, tweepy 2.3.0->3.5.0, closes #12286

+21 -9
+21 -9
pkgs/top-level/python-packages.nix
··· 19931 19931 19932 19932 19933 19933 turses = buildPythonPackage (rec { 19934 - name = "turses-0.2.23"; 19934 + name = "turses-0.3.1"; 19935 19935 19936 19936 src = pkgs.fetchurl { 19937 19937 url = "http://pypi.python.org/packages/source/t/turses/${name}.tar.gz"; 19938 - md5 = "71b9e3ab12d9186798e739b5273d1438"; 19938 + sha256 = "15mkhm3b5ka42h8qph0mhh8izfc1200v7651c62k7ldcs50ib9j6"; 19939 19939 }; 19940 19940 19941 - propagatedBuildInputs = with self; [ oauth2 urwid tweepy ] ++ optional isPy26 argparse; 19941 + buildInputs = with self; [ mock pytest coverage tox ]; 19942 + propagatedBuildInputs = with self; [ urwid tweepy future ] ++ optional isPy26 argparse; 19942 19943 19943 - #buildInputs = [ tox ]; 19944 - # needs tox 19945 - doCheck = false; 19944 + checkPhase = '' 19945 + TMP_TURSES=`echo turses-$RANDOM` 19946 + mkdir $TMP_TURSES 19947 + HOME=$TMP_TURSES py.test tests/ 19948 + rm -rf $TMP_TURSES 19949 + ''; 19950 + 19951 + patchPhase = '' 19952 + sed -i -e "s|future==0.14.3|future==${pkgs.lib.getVersion self.future}|" setup.py 19953 + sed -i -e "s|tweepy==3.3.0|tweepy==${pkgs.lib.getVersion self.tweepy}|" setup.py 19954 + sed -i -e "s|config.generate_config_file.assert_called_once()|assert config.generate_config_file.call_count == 1|" tests/test_config.py 19955 + sed -i -e "s|self.observer.update.assert_called_once()|assert self.observer.update.call_count == 1|" tests/test_meta.py 19956 + ''; 19946 19957 19947 19958 meta = { 19948 19959 homepage = https://github.com/alejandrogomez/turses; ··· 19954 19965 }); 19955 19966 19956 19967 tweepy = buildPythonPackage (rec { 19957 - name = "tweepy-2.3.0"; 19958 - disabled = isPy3k; 19968 + name = "tweepy-3.5.0"; 19959 19969 19960 19970 src = pkgs.fetchurl { 19961 19971 url = "http://pypi.python.org/packages/source/t/tweepy/${name}.tar.gz"; 19962 - md5 = "065c80d244360988c61d64b5dfb7e229"; 19972 + sha256 = "0n2shilamgwhzmvf534xg7f6hrnznbixyl5pw2f5a3f391gwy37h"; 19963 19973 }; 19974 + 19975 + propagatedBuildInputs = with self; [ requests2 six requests_oauthlib ]; 19964 19976 19965 19977 meta = { 19966 19978 homepage = "https://github.com/tweepy/tweepy";