nixpkgs/pkgs/development/python-modules/tweepy/default.nix
2022-02-12 21:19:22 -08:00

50 lines
816 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, oauthlib
, requests
, pythonOlder
, vcrpy
, pytestCheckHook
, requests_oauthlib
}:
buildPythonPackage rec {
pname = "tweepy";
version = "4.5.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-mRpYPuj2B/kEaaeZlNYYnViGxWiK1xtWfDObHNduIK8=";
};
propagatedBuildInputs = [
aiohttp
oauthlib
requests
requests_oauthlib
];
checkInputs = [
pytestCheckHook
vcrpy
];
pythonImportsCheck = [
"tweepy"
];
meta = with lib; {
homepage = "https://github.com/tweepy/tweepy";
description = "Twitter library for Python";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}