@@ -1,6 +1,6 @@
11{ lib
22, buildPythonPackage
3−, isPy3k
3+, pythonOlder
44, fetchPypi
55, requests
66, requests-toolbelt
@@ -9,12 +9,14 @@
99
1010buildPythonPackage rec {
1111 pname = "cloudscraper";
12− version = "1.2.58";
13− disabled = !isPy3k;
12+ version = "1.2.60";
13+ format = "setuptools";
14+
15+ disabled = pythonOlder "3.7";
1416
1517 src = fetchPypi {
1618 inherit pname version;
17− sha256 = "1wnzv2k8cm8q1x18r4zg8pcnpm4gsdp82hywwjimp2v2qll918nx";
19+ hash = "sha256-DTQTsv/59895UTsMmqxYtSfFosUWPRx8wMT4zKHQ9Oc=";
1820 };
1921
2022 propagatedBuildInputs = [
@@ -27,10 +29,12 @@ buildPythonPackage rec {
2729 # nixpkgs yet, and also aren't included in the PyPI bundle. TODO.
2830 doCheck = false;
2931
30− pythonImportsCheck = [ "cloudscraper" ];
32+ pythonImportsCheck = [
33+ "cloudscraper"
34+ ];
3135
3236 meta = with lib; {
33− description = "A Python module to bypass Cloudflare's anti-bot page";
37+ description = "Python module to bypass Cloudflare's anti-bot page";
3438 homepage = "https://github.com/venomous/cloudscraper";
3539 license = licenses.mit;
3640 maintainers = with maintainers; [ kini ];