diff options
Diffstat (limited to 'pkgs/development/python-modules/python-twitter/default.nix')
-rw-r--r-- | pkgs/development/python-modules/python-twitter/default.nix | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/python-twitter/default.nix b/pkgs/development/python-modules/python-twitter/default.nix index 646cdaa18e461..c61d726b71616 100644 --- a/pkgs/development/python-modules/python-twitter/default.nix +++ b/pkgs/development/python-modules/python-twitter/default.nix @@ -1,21 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, filetype -, future -, hypothesis -, pytestCheckHook -, pythonOlder -, requests -, requests-oauthlib -, responses +{ + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + filetype, + future, + hypothesis, + lib, + pytestCheckHook, + pythonOlder, + requests, + requests-oauthlib, + responses, + setuptools, }: buildPythonPackage rec { pname = "python-twitter"; version = "3.5"; - format = "setuptools"; + + pyproject = true; + build-system = [ setuptools ]; disabled = pythonOlder "3.7"; @@ -34,7 +38,7 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ + dependencies = [ filetype future requests @@ -52,14 +56,17 @@ buildPythonPackage rec { --replace "'pytest-runner'" "" ''; - pythonImportsCheck = [ - "twitter" + disabledTests = [ + # AttributeError: 'FileCacheTest' object has no attribute 'assert_' + "test_filecache" ]; + pythonImportsCheck = [ "twitter" ]; + meta = with lib; { description = "Python wrapper around the Twitter API"; homepage = "https://github.com/bear/python-twitter"; license = licenses.asl20; - maintainers = [ maintainers.marsam ]; + maintainers = [ ]; }; } |