mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-10 22:30:59 +00:00
python3Packages.twscrape: init at 0.17.0 (#404120)
This commit is contained in:
58
pkgs/development/python-modules/twscrape/default.nix
Normal file
58
pkgs/development/python-modules/twscrape/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user