packages: Add cfscrape and pySmartDL
This commit is contained in:
parent
d71afad094
commit
ed430bcf54
32
packages/development/python/cfscrape/default.nix
Normal file
32
packages/development/python/cfscrape/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
pkgs
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3Packages
|
||||||
|
, python3
|
||||||
|
, extraPkgs ? pkgs: []
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3Packages.buildPythonApplication rec {
|
||||||
|
pname = "cfscrape";
|
||||||
|
version = "2.1.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Anorov";
|
||||||
|
repo = "cloudflare-scrape";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "00ijxjkk0fz4yi5wazvjdzyhsqpqnck3aa2njjk4z3i7k82jbvxq";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [ requests ];
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/Anorov/cloudflare-scrape";
|
||||||
|
description = "A Python module to bypass Cloudflare's anti-bot page.";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
30
packages/development/python/pySmartDL/default.nix
Normal file
30
packages/development/python/pySmartDL/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
pkgs
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3Packages
|
||||||
|
, python3
|
||||||
|
, extraPkgs ? pkgs: []
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3Packages.buildPythonApplication rec {
|
||||||
|
pname = "pySmartDL";
|
||||||
|
version = "1.3.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "iTaybb";
|
||||||
|
repo = "pySmartDL";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1hr029gh0l0km1prhmxyy0jwgi61l16b5v30rnlc3mc123gszp0j";
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/iTaybb/pySmartDL/";
|
||||||
|
description = "A Smart Download Manager for Python ";
|
||||||
|
license = licenses.unlicense;
|
||||||
|
maintainers = [];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user