1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-06 18:49:12 +03:00
nixpkgs/pkgs/development/python-modules/twitterapi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
821 B
Nix
Raw Normal View History

2021-02-20 10:29:01 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, requests-oauthlib
, pythonOlder
2021-02-20 10:29:01 +01:00
}:
buildPythonPackage rec {
pname = "twitterapi";
version = "2.8.1";
format = "setuptools";
2021-02-20 10:29:01 +01:00
disabled = pythonOlder "3.7";
2021-02-20 10:29:01 +01:00
src = fetchFromGitHub {
owner = "geduldig";
repo = "TwitterAPI";
rev = "v${version}";
hash = "sha256-aBL7k10kZNQG/wNIxO37TbDSlbhrVjTfv2aXcrS2Ibo=";
2021-02-20 10:29:01 +01:00
};
propagatedBuildInputs = [
requests
requests-oauthlib
2021-02-20 10:29:01 +01:00
];
# Tests are interacting with the Twitter API
doCheck = false;
pythonImportsCheck = [
"TwitterAPI"
];
2021-02-20 10:29:01 +01:00
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 ];
};
}