3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/tweepy/default.nix

50 lines
816 B
Nix
Raw Normal View History

2021-11-12 22:38:28 +00:00
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, oauthlib
, requests
, pythonOlder
, vcrpy
, pytestCheckHook
, requests_oauthlib
}:
2018-04-26 07:46:54 +01:00
buildPythonPackage rec {
pname = "tweepy";
2021-11-19 23:05:40 +00:00
version = "4.4.0";
2021-11-12 22:38:28 +00:00
format = "setuptools";
2018-04-26 07:46:54 +01:00
2021-11-12 22:38:28 +00:00
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2021-11-19 23:05:40 +00:00
sha256 = "sha256-GUo8uvShyIOWWcO5T1JvV7DMC1W70YILx/hvHIGQg0o=";
};
2021-11-12 22:38:28 +00:00
propagatedBuildInputs = [
aiohttp
oauthlib
requests
requests_oauthlib
];
checkInputs = [
pytestCheckHook
vcrpy
];
pythonImportsCheck = [
"tweepy"
];
2018-04-26 07:46:54 +01:00
meta = with lib; {
homepage = "https://github.com/tweepy/tweepy";
2021-11-12 22:38:28 +00:00
description = "Twitter library for Python";
2018-04-26 07:46:54 +01:00
license = licenses.mit;
maintainers = with maintainers; [ ];
2018-04-26 07:46:54 +01:00
};
}