1{ lib 2, buildPythonPackage 3, isPy3k 4, fetchPypi 5, requests 6, requests-toolbelt 7, pyparsing 8}: 9 10buildPythonPackage rec { 11 pname = "cloudscraper"; 12 version = "1.2.58"; 13 disabled = !isPy3k; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "1wnzv2k8cm8q1x18r4zg8pcnpm4gsdp82hywwjimp2v2qll918nx"; 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 = with lib; { 33 description = "A Python module to bypass Cloudflare's anti-bot page"; 34 homepage = "https://github.com/venomous/cloudscraper"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ kini ]; 37 }; 38}