python3Packages.python-twitter: fix

(cherry picked from commit d3b9ef5962)
This commit is contained in:
Moraxyc 2024-05-26 10:35:42 +08:00 committed by github-actions[bot]
parent 7d850e3ae2
commit 0e260e923d

View File

@ -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; {