Merge pull request #129373 from fabaff/bump-python-jose

This commit is contained in:
Sandro 2021-07-07 02:32:53 +02:00 committed by GitHub
commit f9b33c5366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,46 +1,50 @@
{ lib, buildPythonPackage, fetchFromGitHub { lib
, future, six, ecdsa, rsa , buildPythonPackage
, pycrypto, pytestcov, pytestrunner, cryptography , fetchFromGitHub
, ecdsa
, rsa
, pycrypto
, pyasn1
, pycryptodome
, cryptography
, pytestCheckHook , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-jose"; pname = "python-jose";
version = "3.2.0"; version = "3.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mpdavis"; owner = "mpdavis";
repo = "python-jose"; repo = pname;
rev = version; rev = version;
sha256 = "cSPIZrps0xFd4pPcQ4w/jFWOk2XYgd3mtE/sDzlytvY="; sha256 = "sha256-6VGC6M5oyGCOiXcYp6mpyhL+JlcYZKIqOQU9Sm/TkKM=";
}; };
checkInputs = [ propagatedBuildInputs = [
cryptography
ecdsa
pyasn1
pycrypto pycrypto
pytestCheckHook pycryptodome
pytestcov rsa
pytestrunner
cryptography # optional dependency, but needed in tests
]; ];
# relax ecdsa deps checkInputs = [
patchPhase = '' pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace 'ecdsa<0.15' 'ecdsa' \ --replace '"pytest-runner",' ""
--replace 'ecdsa <0.15' 'ecdsa'
''; '';
disabledTests = [ pythonImportsCheck = [ "jose" ];
# https://github.com/mpdavis/python-jose/issues/176
"test_key_too_short"
];
propagatedBuildInputs = [ future six ecdsa rsa ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/mpdavis/python-jose"; homepage = "https://github.com/mpdavis/python-jose";
description = "A JOSE implementation in Python"; description = "A JOSE implementation in Python";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.jhhuh ]; maintainers = with maintainers; [ jhhuh ];
}; };
} }