2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, future, six, ecdsa, rsa
|
2020-06-15 15:56:04 +00:00
|
|
|
, pycrypto, pytestcov, pytestrunner, cryptography
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-jose";
|
|
|
|
version = "3.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpdavis";
|
|
|
|
repo = "python-jose";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1gnn0zy03pywj65ammy3sd07knzhjv8n5jhx1ir9bikgra9v0iqh";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pycrypto
|
2020-06-15 15:56:04 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
pytestcov
|
|
|
|
pytestrunner
|
|
|
|
cryptography # optional dependency, but needed in tests
|
|
|
|
];
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/mpdavis/python-jose/issues/176
|
|
|
|
"test_key_too_short"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ future six ecdsa rsa ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/mpdavis/python-jose";
|
|
|
|
description = "A JOSE implementation in Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.jhhuh ];
|
|
|
|
};
|
|
|
|
}
|