python.pkgs.python-jose: 2.0.2 -> 3.0.0

This commit is contained in:
Robert Schütz 2018-07-31 14:59:22 +02:00
parent 8fe7dd59a3
commit a6d3577d3d

View File

@ -1,30 +1,29 @@
{ stdenv, buildPythonPackage, fetchFromGitHub { stdenv, buildPythonPackage, fetchFromGitHub
, future, six, ecdsa, pycryptodome, pytest, cryptography , six, ecdsa, rsa, future, pytest, cryptography, pycryptodome
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-jose"; pname = "python-jose";
version = "2.0.2"; version = "3.0.0";
# no tests in PyPI tarball # no tests in PyPI tarball
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mpdavis"; owner = "mpdavis";
repo = "python-jose"; repo = "python-jose";
# 2.0.2 not tagged on GitHub rev = version;
# see https://github.com/mpdavis/python-jose/issues/86 sha256 = "1dq8v87abqxv07wi403ywjk9jg1da125fviycqzki48cjxx0dhwj";
rev = "28cc6719eceb89129eed59c25f7bdac015665bdd";
sha256 = "03wkq2rszy0rzy5gygsh4s7i6ls8zflgbcvxnflvmh7nis7002fp";
}; };
checkInputs = [ checkInputs = [
pytest pytest
cryptography # optional dependency, but needed in tests # optional dependencies, but needed in tests
cryptography pycryptodome
]; ];
checkPhase = '' checkPhase = ''
py.test py.test
''; '';
propagatedBuildInputs = [ future six ecdsa pycryptodome ]; propagatedBuildInputs = [ six ecdsa rsa future ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/mpdavis/python-jose; homepage = https://github.com/mpdavis/python-jose;