depot/third_party/nixpkgs/pkgs/development/python-modules/twitterapi/default.nix
Default email 634fe97655 Project import generated by Copybara.
GitOrigin-RevId: 09c38c29f2c719cd76ca17a596c2fdac9e186ceb
2021-07-03 00:11:41 -03:00

34 lines
744 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, requests_oauthlib
}:
buildPythonPackage rec {
pname = "twitterapi";
version = "2.7.4";
src = fetchFromGitHub {
owner = "geduldig";
repo = "TwitterAPI";
rev = "v${version}";
sha256 = "sha256-HDPRpM1LDTtUbldzfCrsdh/GpbzNCVVUVGwohyMe/YE=";
};
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 ];
};
}