Files
nixpkgs/pkgs/development/python-modules/python-jose/default.nix
T

47 lines
1.0 KiB
Nix
Raw Normal View History

2017-03-16 00:43:58 +01:00
{ stdenv, buildPythonPackage, fetchFromGitHub
2018-12-03 15:01:09 +01:00
, future, six, ecdsa, rsa
, pycrypto, pytestcov, pytestrunner, cryptography
, pytestCheckHook
2017-03-16 00:43:58 +01:00
}:
buildPythonPackage rec {
2017-05-27 11:25:35 +02:00
pname = "python-jose";
2020-10-28 19:21:49 +01:00
version = "3.2.0";
2018-04-07 15:13:05 +02:00
2017-03-16 00:43:58 +01:00
src = fetchFromGitHub {
owner = "mpdavis";
repo = "python-jose";
2018-12-03 15:01:09 +01:00
rev = version;
2020-10-28 19:21:49 +01:00
sha256 = "cSPIZrps0xFd4pPcQ4w/jFWOk2XYgd3mtE/sDzlytvY=";
2017-03-16 00:43:58 +01:00
};
2018-04-07 15:13:05 +02:00
checkInputs = [
2018-12-03 15:01:09 +01:00
pycrypto
pytestCheckHook
2018-12-03 15:01:09 +01:00
pytestcov
pytestrunner
cryptography # optional dependency, but needed in tests
2017-03-16 00:43:58 +01:00
];
2018-04-07 15:13:05 +02:00
2020-10-28 19:21:49 +01:00
# relax ecdsa deps
patchPhase = ''
substituteInPlace setup.py \
--replace 'ecdsa<0.15' 'ecdsa' \
--replace 'ecdsa <0.15' 'ecdsa'
'';
disabledTests = [
# https://github.com/mpdavis/python-jose/issues/176
"test_key_too_short"
];
2018-12-03 15:01:09 +01:00
propagatedBuildInputs = [ future six ecdsa rsa ];
2018-04-07 15:13:05 +02:00
2017-03-16 00:43:58 +01:00
meta = with stdenv.lib; {
homepage = "https://github.com/mpdavis/python-jose";
2017-03-16 00:43:58 +01:00
description = "A JOSE implementation in Python";
license = licenses.mit;
maintainers = [ maintainers.jhhuh ];
};
}