python3Packages.cloudscraper: disable on older Python releases
This commit is contained in:
parent
5c3df05e27
commit
10d73c1350
1 changed files with 9 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy3k
|
, pythonOlder
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, requests
|
, requests
|
||||||
, requests-toolbelt
|
, requests-toolbelt
|
||||||
|
@ -10,11 +10,13 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "cloudscraper";
|
pname = "cloudscraper";
|
||||||
version = "1.2.60";
|
version = "1.2.60";
|
||||||
disabled = !isPy3k;
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-DTQTsv/59895UTsMmqxYtSfFosUWPRx8wMT4zKHQ9Oc=";
|
hash = "sha256-DTQTsv/59895UTsMmqxYtSfFosUWPRx8wMT4zKHQ9Oc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -27,10 +29,12 @@ buildPythonPackage rec {
|
||||||
# nixpkgs yet, and also aren't included in the PyPI bundle. TODO.
|
# nixpkgs yet, and also aren't included in the PyPI bundle. TODO.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "cloudscraper" ];
|
pythonImportsCheck = [
|
||||||
|
"cloudscraper"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Python module to bypass Cloudflare's anti-bot page";
|
description = "Python module to bypass Cloudflare's anti-bot page";
|
||||||
homepage = "https://github.com/venomous/cloudscraper";
|
homepage = "https://github.com/venomous/cloudscraper";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ kini ];
|
maintainers = with maintainers; [ kini ];
|
||||||
|
|
Loading…
Reference in a new issue