567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
31 lines
666 B
Nix
31 lines
666 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "cfscrape";
|
|
version = "2.1.1";
|
|
format = "setuptools";
|
|
src = fetchFromGitHub {
|
|
owner = "Anorov";
|
|
repo = "cloudflare-scrape";
|
|
rev = "9692fe7ff3c17b76ddf0f4d50d3dba7d1791c9c6";
|
|
hash = "sha256-uO8lBZonjk+mlFYoNSaz+GIN/W9yf8VL9OQ7MKfsMgI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/Anorov/cloudflare-scrape";
|
|
description = "Python module to bypass Cloudflare's anti-bot page";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
}
|