nixpkgs-suyu/pkgs/development/python-modules/cfscrape/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

29 lines
688 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
}:
buildPythonPackage rec {
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 = with lib; {
homepage = "https://github.com/Anorov/cloudflare-scrape";
description = "A Python module to bypass Cloudflare's anti-bot page";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}