Unverified Commit 53ed39d4 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

python3Packages.twscrape: init at 0.17.0 (#404120)

parents 00937518 93b852d0
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
{
  lib,
  aiosqlite,
  beautifulsoup4,
  buildPythonPackage,
  fake-useragent,
  fetchFromGitHub,
  hatchling,
  httpx,
  loguru,
  pyotp,
  pytestCheckHook,
  pytest-httpx,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "twscrape";
  version = "0.17.0";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "vladkens";
    repo = "twscrape";
    tag = "v${version}";
    hash = "sha256-0j6nE8V0CWTuIHMS+2p5Ncz7d+D6VagjtyfMbQuI8Eg=";
  };

  build-system = [ hatchling ];

  pythonRelaxDeps = [ "beautifulsoup4" ];

  dependencies = [
    aiosqlite
    beautifulsoup4
    fake-useragent
    httpx
    loguru
    pyotp
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-httpx
  ];

  pythonImportsCheck = [ "twscrape" ];

  meta = {
    description = "Twitter API scrapper with authorization support.";
    homepage = "https://github.com/vladkens/twscrape";
    changelog = "https://github.com/vladkens/twscrape/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.amadejkastelic ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -17837,6 +17837,8 @@ self: super: with self; {
  twofish = callPackage ../development/python-modules/twofish { };
  twscrape = callPackage ../development/python-modules/twscrape { };
  txaio = callPackage ../development/python-modules/txaio { };
  txamqp = callPackage ../development/python-modules/txamqp { };