2017-03-15 16:43:58 -07:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
2018-12-03 06:01:09 -08:00
|
|
|
, future, six, ecdsa, rsa
|
2020-06-11 01:39:36 -07:00
|
|
|
, pycrypto, pytestcov, pytestrunner, cryptography
|
|
|
|
, pytestCheckHook
|
2017-03-15 16:43:58 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 02:25:35 -07:00
|
|
|
pname = "python-jose";
|
2020-03-18 10:03:11 -07:00
|
|
|
version = "3.1.0";
|
2018-04-07 06:13:05 -07:00
|
|
|
|
2017-03-15 16:43:58 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpdavis";
|
|
|
|
repo = "python-jose";
|
2018-12-03 06:01:09 -08:00
|
|
|
rev = version;
|
2020-03-18 10:03:11 -07:00
|
|
|
sha256 = "1gnn0zy03pywj65ammy3sd07knzhjv8n5jhx1ir9bikgra9v0iqh";
|
2017-03-15 16:43:58 -07:00
|
|
|
};
|
|
|
|
|
2018-04-07 06:13:05 -07:00
|
|
|
checkInputs = [
|
2018-12-03 06:01:09 -08:00
|
|
|
pycrypto
|
2020-06-11 01:39:36 -07:00
|
|
|
pytestCheckHook
|
2018-12-03 06:01:09 -08:00
|
|
|
pytestcov
|
|
|
|
pytestrunner
|
2018-08-30 09:39:11 -07:00
|
|
|
cryptography # optional dependency, but needed in tests
|
2017-03-15 16:43:58 -07:00
|
|
|
];
|
2018-04-07 06:13:05 -07:00
|
|
|
|
2020-06-11 01:39:36 -07:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/mpdavis/python-jose/issues/176
|
|
|
|
"test_key_too_short"
|
|
|
|
];
|
2019-08-18 01:47:55 -07:00
|
|
|
|
2018-12-03 06:01:09 -08:00
|
|
|
propagatedBuildInputs = [ future six ecdsa rsa ];
|
2018-04-07 06:13:05 -07:00
|
|
|
|
2017-03-15 16:43:58 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/mpdavis/python-jose";
|
2017-03-15 16:43:58 -07:00
|
|
|
description = "A JOSE implementation in Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.jhhuh ];
|
|
|
|
};
|
|
|
|
}
|