depot/third_party/nixpkgs/pkgs/development/python-modules/twitterapi/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

41 lines
822 B
Nix

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