170c3b4027
GitOrigin-RevId: 7cb76200088f45cd24a9aa67fd2f9657943d78a4
34 lines
744 B
Nix
34 lines
744 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, requests_oauthlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "twitterapi";
|
|
version = "2.7.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "geduldig";
|
|
repo = "TwitterAPI";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-82TOVrC7wX7E9lKsx3iGxaEEjHSzf5uZwePBvAw3hDk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
requests_oauthlib
|
|
];
|
|
|
|
# Tests are interacting with the Twitter API
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "TwitterAPI" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper for Twitter's REST and Streaming APIs";
|
|
homepage = "https://github.com/geduldig/TwitterAPI";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|