Merge pull request #314736 from Moraxyc/fix-python-twitter

python3Packages.python-twitter: fix
This commit is contained in:
OTABI Tomoya
2024-05-26 14:19:49 +09:00
committed by GitHub
@@ -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; {