pythonPackages.snowflake-connector-python: unpin pytz

This commit is contained in:
Sandro Jäckel 2021-03-08 21:37:14 +01:00
parent 92b80805df
commit 675784ddda
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -33,6 +33,12 @@ buildPythonPackage rec {
sha256 = "ad62bfd31e677d39984449d9c68e233da2776b80894a988a2421aad412e4c44f";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pyOpenSSL>=16.2.0,<20.0.0'," "'pyOpenSSL'," \
--replace 'pytz<2021.0' 'pytz'
'';
propagatedBuildInputs = [
azure-storage-blob
asn1crypto
@ -55,11 +61,6 @@ buildPythonPackage rec {
urllib3
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pyOpenSSL>=16.2.0,<20.0.0'," "'pyOpenSSL',"
'';
# tests require encrypted secrets, see
# https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
doCheck = false;