forked from mirrors/nixpkgs
python3Packages.google-cloud-error-reporting: disable on older Python releases
This commit is contained in:
parent
267fa3bc87
commit
6961aae3da
|
@ -8,22 +8,21 @@
|
|||
, mock
|
||||
, proto-plus
|
||||
, pytest-asyncio
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-error-reporting";
|
||||
version = "1.5.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-wjRUPBZwyGP+2528vZ/x4EqiZwqH+9ZvK5rx4ISklHE=";
|
||||
hash = "sha256-wjRUPBZwyGP+2528vZ/x4EqiZwqH+9ZvK5rx4ISklHE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'google-cloud-logging>=1.14.0, <2.4' 'google-cloud-logging>=1.14.0'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
google-cloud-logging
|
||||
libcst
|
||||
|
|
Loading…
Reference in a new issue