Merge pull request #121891 from fabaff/py2-pyjwt
python3Packages.pyjwt: 2.0.1 -> 2.1.0
This commit is contained in:
commit
0c2ad9135f
@ -9,11 +9,11 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "msal";
|
pname = "msal";
|
||||||
version = "1.10.0";
|
version = "1.11.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "582e92e3b9fa68084dca6ecfd8db866ddc75cd9043de267c79d6b6277dd27f55";
|
sha256 = "sha256-RnrwK7lKh6G2lbUb+GdmfoKKzA3Twd5fpUP2kALbSfo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -25,12 +25,12 @@ buildPythonPackage rec {
|
|||||||
# https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73
|
# https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "msal" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The Microsoft Authentication Library (MSAL) for Python library enables your app to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect";
|
description = "The Microsoft Authentication Library (MSAL) for Python library enables your app to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect";
|
||||||
homepage = "https://github.com/AzureAD/microsoft-authentication-library-for-python";
|
homepage = "https://github.com/AzureAD/microsoft-authentication-library-for-python";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [
|
maintainers = with maintainers; [ kamadorueda ];
|
||||||
kamadorueda
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -17,13 +17,27 @@ buildPythonPackage rec {
|
|||||||
sha256 = "9e0d70a1fa6f452584de1cb853ae6c11f41233549f7839cfb879f99410f6ad46";
|
sha256 = "9e0d70a1fa6f452584de1cb853ae6c11f41233549f7839cfb879f99410f6ad46";
|
||||||
};
|
};
|
||||||
|
|
||||||
# package has no tests
|
propagatedBuildInputs = [
|
||||||
|
oauthlib
|
||||||
|
pyjwt
|
||||||
|
requests
|
||||||
|
requests_oauthlib
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# https://github.com/mediawiki-utilities/python-mwoauth/pull/43
|
||||||
|
substituteInPlace setup.py --replace "PyJWT>=1.0.1,<2.0.0" "PyJWT>=1.0.1"
|
||||||
|
'';
|
||||||
|
|
||||||
|
# PyPI source has no tests included
|
||||||
|
# https://github.com/mediawiki-utilities/python-mwoauth/issues/44
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
propagatedBuildInputs = [ six pyjwt requests oauthlib requests_oauthlib ];
|
pythonImportsCheck = [ "mwoauth" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library designed to provide a simple means to performing an OAuth handshake with a MediaWiki installation with the OAuth Extension installed.";
|
description = "Python library to perform OAuth handshakes with a MediaWiki installation";
|
||||||
homepage = "https://github.com/mediawiki-utilities/python-mwoauth";
|
homepage = "https://github.com/mediawiki-utilities/python-mwoauth";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ixxie ];
|
maintainers = with maintainers; [ ixxie ];
|
||||||
|
@ -14,20 +14,18 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "oauthenticator";
|
pname = "oauthenticator";
|
||||||
version = "0.13.0";
|
version = "14.0.0";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5202adcd96ddbbccbc267da02f2d14e977300c81291aaa77be4fd9f2e27cfa37";
|
sha256 = "1zfcl3dq9ladqg7fnpx6kgxf1ckjzlc8v3j6wa8w6iwglm40ax4r";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
jupyterhub
|
jupyterhub
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [ "oauthenticator/tests" ];
|
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
google-api-python-client
|
google-api-python-client
|
||||||
google-auth-oauthlib
|
google-auth-oauthlib
|
||||||
@ -38,6 +36,20 @@ buildPythonPackage rec {
|
|||||||
requests-mock
|
requests-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# The constraint was removed. No longer needed for > 14.0.0
|
||||||
|
# https://github.com/jupyterhub/oauthenticator/pull/431
|
||||||
|
substituteInPlace test-requirements.txt --replace "pyjwt>=1.7,<2.0" "pyjwt"
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Test are outdated, https://github.com/jupyterhub/oauthenticator/issues/432
|
||||||
|
"test_azuread"
|
||||||
|
"test_mediawiki"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "oauthenticator" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more.";
|
description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more.";
|
||||||
homepage = "https://github.com/jupyterhub/oauthenticator";
|
homepage = "https://github.com/jupyterhub/oauthenticator";
|
||||||
|
@ -41,6 +41,15 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# https://github.com/ChrisMandich/PyFlume/issues/18
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "pyjwt==2.0.1" "pyjwt>=2.0.1" \
|
||||||
|
--replace "ratelimit==2.2.1" "ratelimit>=2.2.1" \
|
||||||
|
--replace "pytz==2019.2" "pytz>=2019.2" \
|
||||||
|
--replace "requests==2.24.0" "requests>=2.24.0"
|
||||||
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "pyflume" ];
|
pythonImportsCheck = [ "pyflume" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -1,28 +1,35 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, cryptography, ecdsa
|
, buildPythonPackage
|
||||||
, pytestrunner, pytestcov, pytest }:
|
, fetchPypi
|
||||||
|
, cryptography
|
||||||
|
, ecdsa
|
||||||
|
, pytest-cov
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "PyJWT";
|
pname = "pyjwt";
|
||||||
version = "2.0.1";
|
version = "2.1.0";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
pname = "PyJWT";
|
||||||
sha256 = "a5c70a06e1f33d81ef25eecd50d50bd30e34de1ca8b2b9fa3fe0daaabcf69bf7";
|
inherit version;
|
||||||
|
sha256 = "sha256-+6ROeJi7yhYKKytQH0koJPyDgkhdOm8Rul0MGTfOYTA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ cryptography ecdsa ];
|
propagatedBuildInputs = [
|
||||||
|
cryptography
|
||||||
|
ecdsa
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestrunner pytestcov pytest ];
|
checkInputs = [
|
||||||
|
pytest-cov
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
pythonImportsCheck = [ "jwt" ];
|
||||||
substituteInPlace setup.py --replace "pytest>=4.0.1,<5.0.0" "pytest"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# ecdsa changed internal behavior
|
|
||||||
checkPhase = ''
|
|
||||||
pytest tests -k 'not ec_verify_should_return_false_if_signature_invalid'
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "JSON Web Token implementation in Python";
|
description = "JSON Web Token implementation in Python";
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{ buildPythonPackage
|
{ lib
|
||||||
, isPy27
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
, asn1crypto
|
, asn1crypto
|
||||||
, azure-storage-blob
|
, azure-storage-blob
|
||||||
, boto3
|
, boto3
|
||||||
@ -10,7 +11,6 @@
|
|||||||
, idna
|
, idna
|
||||||
, ijson
|
, ijson
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, lib
|
|
||||||
, oscrypto
|
, oscrypto
|
||||||
, pyarrow
|
, pyarrow
|
||||||
, pyasn1-modules
|
, pyasn1-modules
|
||||||
@ -25,20 +25,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "snowflake-connector-python";
|
pname = "snowflake-connector-python";
|
||||||
version = "2.4.1";
|
version = "2.4.3";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5c9180e61202a7beb1df83231688423091ca0a04ee559d2a78ff77f9c727baae";
|
sha256 = "sha256-+jAfUwaofWM5Ef1kk4AEAbBM/UES8/ZzLd4QJfkEQsM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "'pyOpenSSL>=16.2.0,<20.0.0'," "'pyOpenSSL'," \
|
|
||||||
--replace 'pytz<2021.0' 'pytz'
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
azure-storage-blob
|
azure-storage-blob
|
||||||
asn1crypto
|
asn1crypto
|
||||||
@ -55,16 +49,26 @@ buildPythonPackage rec {
|
|||||||
pytz
|
pytz
|
||||||
requests
|
requests
|
||||||
six
|
six
|
||||||
] ++ lib.optionals (!isPy3k) [
|
|
||||||
pyarrow
|
pyarrow
|
||||||
pyasn1-modules
|
pyasn1-modules
|
||||||
urllib3
|
urllib3
|
||||||
];
|
];
|
||||||
|
|
||||||
# tests require encrypted secrets, see
|
postPatch = ''
|
||||||
|
# https://github.com/snowflakedb/snowflake-connector-python/issues/705
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "idna>=2.5,<3" "idna" \
|
||||||
|
--replace "chardet>=3.0.2,<4" "chardet"
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Tests require encrypted secrets, see
|
||||||
# https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
|
# https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
pythonImportsCheck = [ "snowflake" "snowflake.connector" ];
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"snowflake"
|
||||||
|
"snowflake.connector"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Snowflake Connector for Python";
|
description = "Snowflake Connector for Python";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user