mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 23:36:39 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
39 lines
917 B
Nix
39 lines
917 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
requests,
|
|
requests-toolbelt,
|
|
pyparsing,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cloudscraper";
|
|
version = "1.2.71";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QpxuiqaRbVutXIperFDz6lPJrCJhb2yyGxjcxxUX0NM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
requests-toolbelt
|
|
pyparsing
|
|
];
|
|
|
|
# The tests require several other dependencies, some of which aren't in
|
|
# nixpkgs yet, and also aren't included in the PyPI bundle. TODO.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "cloudscraper" ];
|
|
|
|
meta = {
|
|
description = "Python module to bypass Cloudflare's anti-bot page";
|
|
homepage = "https://github.com/venomous/cloudscraper";
|
|
changelog = "https://github.com/VeNoMouS/cloudscraper/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ kini ];
|
|
};
|
|
}
|