nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 917 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 requests, 6 requests-toolbelt, 7 pyparsing, 8}: 9 10buildPythonPackage rec { 11 pname = "cloudscraper"; 12 version = "1.2.71"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-QpxuiqaRbVutXIperFDz6lPJrCJhb2yyGxjcxxUX0NM="; 18 }; 19 20 propagatedBuildInputs = [ 21 requests 22 requests-toolbelt 23 pyparsing 24 ]; 25 26 # The tests require several other dependencies, some of which aren't in 27 # nixpkgs yet, and also aren't included in the PyPI bundle. TODO. 28 doCheck = false; 29 30 pythonImportsCheck = [ "cloudscraper" ]; 31 32 meta = { 33 description = "Python module to bypass Cloudflare's anti-bot page"; 34 homepage = "https://github.com/venomous/cloudscraper"; 35 changelog = "https://github.com/VeNoMouS/cloudscraper/releases/tag/${version}"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ kini ]; 38 }; 39}