b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
53 lines
865 B
Nix
53 lines
865 B
Nix
{ lib
|
|
, aiohttp
|
|
, async-lru
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, oauthlib
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-oauthlib
|
|
, six
|
|
, vcrpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tweepy";
|
|
version = "4.10.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-S8lF40ioarnR1ZDSy6/9arANDYvy0NpYlVi65LQlPA8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-lru
|
|
oauthlib
|
|
requests
|
|
requests-oauthlib
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
vcrpy
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"tweepy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Twitter library for Python";
|
|
homepage = "https://github.com/tweepy/tweepy";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|