python3Packages.twscrape: init at 0.17.0 (#404120)

This commit is contained in:
Yohann Boniface
2025-05-15 23:18:51 +02:00
committed by GitHub
2 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
{
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 ];
};
}

View File

@@ -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 { };