From d3b9ef596236214acab04d51db8925a1caff13e2 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Sun, 26 May 2024 10:35:42 +0800 Subject: [PATCH] python3Packages.python-twitter: fix --- .../python-modules/python-twitter/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/python-twitter/default.nix b/pkgs/development/python-modules/python-twitter/default.nix index b085ed0caee8..c61d726b7161 100644 --- a/pkgs/development/python-modules/python-twitter/default.nix +++ b/pkgs/development/python-modules/python-twitter/default.nix @@ -1,22 +1,25 @@ { - lib, 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"; @@ -35,7 +38,7 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ + dependencies = [ filetype future requests @@ -53,6 +56,11 @@ buildPythonPackage rec { --replace "'pytest-runner'" "" ''; + disabledTests = [ + # AttributeError: 'FileCacheTest' object has no attribute 'assert_' + "test_filecache" + ]; + pythonImportsCheck = [ "twitter" ]; meta = with lib; {