diff --git a/pkgs/development/python-modules/cfscrape/default.nix b/pkgs/development/python-modules/cfscrape/default.nix new file mode 100644 index 000000000000..3fd98b7e1e2a --- /dev/null +++ b/pkgs/development/python-modules/cfscrape/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, requests +}: + +buildPythonPackage rec { + pname = "cfscrape"; + version = "2.1.1"; + src = fetchFromGitHub ({ + owner = "Anorov"; + repo = "cloudflare-scrape"; + rev = "9692fe7ff3c17b76ddf0f4d50d3dba7d1791c9c6"; + sha256 = "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; [ WeebSorceress ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 84fd4c1c08a1..6b42f3a819fc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1603,6 +1603,8 @@ in { cfn-lint = callPackage ../development/python-modules/cfn-lint { }; + cfscrape = callPackage ../development/python-modules/cfscrape { }; + cftime = callPackage ../development/python-modules/cftime { }; cgen = callPackage ../development/python-modules/cgen { };