lol

python3Packages.python-twitter: rename requests-oauthlib

+30 -9
+30 -9
pkgs/development/python-modules/python-twitter/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 4 , fetchpatch 5 - , pytest-runner 5 + , filetype 6 6 , future 7 + , hypothesis 8 + , pytestCheckHook 9 + , pythonOlder 7 10 , requests 11 + , requests-oauthlib 8 12 , responses 9 - , requests_oauthlib 10 - , pytest 11 - , hypothesis 12 13 }: 13 14 14 15 buildPythonPackage rec { 15 16 pname = "python-twitter"; 16 17 version = "3.5"; 18 + format = "setuptools"; 17 19 18 - # No tests in PyPi Tarball 20 + disabled = pythonOlder "3.7"; 21 + 19 22 src = fetchFromGitHub { 20 23 owner = "bear"; 21 24 repo = pname; ··· 31 34 }) 32 35 ]; 33 36 34 - nativeBuildInputs = [ pytest-runner ]; 35 - propagatedBuildInputs = [ future requests requests_oauthlib ]; 36 - checkInputs = [ pytest responses hypothesis ]; 37 + propagatedBuildInputs = [ 38 + filetype 39 + future 40 + requests 41 + requests-oauthlib 42 + ]; 43 + 44 + checkInputs = [ 45 + pytestCheckHook 46 + responses 47 + hypothesis 48 + ]; 49 + 50 + postPatch = '' 51 + substituteInPlace setup.py \ 52 + --replace "'pytest-runner'" "" 53 + ''; 54 + 55 + pythonImportsCheck = [ 56 + "twitter" 57 + ]; 37 58 38 59 meta = with lib; { 39 - description = "A Python wrapper around the Twitter API"; 60 + description = "Python wrapper around the Twitter API"; 40 61 homepage = "https://github.com/bear/python-twitter"; 41 62 license = licenses.asl20; 42 63 maintainers = [ maintainers.marsam ];