2017-03-15 23:43:58 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
2018-08-30 17:39:11 +01:00
|
|
|
, future, six, ecdsa, pycryptodome, pytest, cryptography
|
2017-03-15 23:43:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "python-jose";
|
2018-08-30 17:39:11 +01:00
|
|
|
version = "2.0.2";
|
2018-04-07 14:13:05 +01:00
|
|
|
|
|
|
|
# no tests in PyPI tarball
|
2017-03-15 23:43:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpdavis";
|
|
|
|
repo = "python-jose";
|
2018-08-30 17:39:11 +01:00
|
|
|
# 2.0.2 not tagged on GitHub
|
|
|
|
# see https://github.com/mpdavis/python-jose/issues/86
|
|
|
|
rev = "28cc6719eceb89129eed59c25f7bdac015665bdd";
|
|
|
|
sha256 = "03wkq2rszy0rzy5gygsh4s7i6ls8zflgbcvxnflvmh7nis7002fp";
|
2017-03-15 23:43:58 +00:00
|
|
|
};
|
|
|
|
|
2018-04-07 14:13:05 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
2018-08-30 17:39:11 +01:00
|
|
|
cryptography # optional dependency, but needed in tests
|
2017-03-15 23:43:58 +00:00
|
|
|
];
|
2018-04-07 14:13:05 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-08-30 17:39:11 +01:00
|
|
|
propagatedBuildInputs = [ future six ecdsa pycryptodome ];
|
2018-04-07 14:13:05 +01:00
|
|
|
|
2017-03-15 23:43:58 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/mpdavis/python-jose;
|
2017-03-15 23:43:58 +00:00
|
|
|
description = "A JOSE implementation in Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.jhhuh ];
|
|
|
|
};
|
|
|
|
}
|