depot/third_party/nixpkgs/pkgs/development/python-modules/twitterapi/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

41 lines
822 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, requests-oauthlib
, pythonOlder
}:
buildPythonPackage rec {
pname = "twitterapi";
version = "2.7.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "geduldig";
repo = "TwitterAPI";
rev = "v${version}";
hash = "sha256-48Gphpo3tPcVEGNOSEb8mQaSQARQDCOGFyhGJ+i4BWI=";
};
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 ];
};
}