2017-03-16 00:43:58 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
2018-08-30 18:39:11 +02:00
|
|
|
, future, six, ecdsa, pycryptodome, pytest, cryptography
|
2017-03-16 00:43:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "python-jose";
|
2018-08-30 18:39:11 +02:00
|
|
|
version = "2.0.2";
|
2018-04-07 15:13:05 +02:00
|
|
|
|
|
|
|
# no tests in PyPI tarball
|
2017-03-16 00:43:58 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpdavis";
|
|
|
|
repo = "python-jose";
|
2018-08-30 18:39:11 +02:00
|
|
|
# 2.0.2 not tagged on GitHub
|
|
|
|
# see https://github.com/mpdavis/python-jose/issues/86
|
|
|
|
rev = "28cc6719eceb89129eed59c25f7bdac015665bdd";
|
|
|
|
sha256 = "03wkq2rszy0rzy5gygsh4s7i6ls8zflgbcvxnflvmh7nis7002fp";
|
2017-03-16 00:43:58 +01:00
|
|
|
};
|
|
|
|
|
2018-04-07 15:13:05 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
2018-08-30 18:39:11 +02:00
|
|
|
cryptography # optional dependency, but needed in tests
|
2017-03-16 00:43:58 +01:00
|
|
|
];
|
2018-04-07 15:13:05 +02:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-08-30 18:39:11 +02:00
|
|
|
propagatedBuildInputs = [ future six ecdsa pycryptodome ];
|
2018-04-07 15:13:05 +02:00
|
|
|
|
2017-03-16 00:43:58 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|