depot/third_party/nixpkgs/pkgs/development/python-modules/twitterapi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
919 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
requests-oauthlib,
pythonOlder,
}:
buildPythonPackage rec {
pname = "twitterapi";
version = "2.8.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "geduldig";
repo = "TwitterAPI";
rev = "refs/tags/v${version}";
hash = "sha256-4Z8XfgRhQXawCvaXM+kyMO3fejvXIF2LgVdmfXDDqIA=";
};
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";
changelog = "https://github.com/geduldig/TwitterAPI/blob/v${version}/CHANGE.log";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}