a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
54 lines
942 B
Nix
54 lines
942 B
Nix
{ lib
|
|
, aiohttp
|
|
, async-lru
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, oauthlib
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-oauthlib
|
|
, six
|
|
, vcrpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tweepy";
|
|
version = "4.12.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jyH2qJoVFuNwZCOtl2CvuuMCpJXCvlxcaHJd7fT1XzA=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/tweepy/tweepy/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|