Merge pull request #129373 from fabaff/bump-python-jose
This commit is contained in:
commit
f9b33c5366
@ -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 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user