2017-03-15 23:43:58 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
2018-07-31 13:59:22 +01:00
|
|
|
, six, ecdsa, rsa, future, pytest, cryptography, pycryptodome
|
2017-03-15 23:43:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "python-jose";
|
2018-07-31 13:59:22 +01:00
|
|
|
version = "3.0.0";
|
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-07-31 13:59:22 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1dq8v87abqxv07wi403ywjk9jg1da125fviycqzki48cjxx0dhwj";
|
2017-03-15 23:43:58 +00:00
|
|
|
};
|
|
|
|
|
2018-04-07 14:13:05 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
2018-07-31 13:59:22 +01:00
|
|
|
# optional dependencies, but needed in tests
|
|
|
|
cryptography pycryptodome
|
2017-03-15 23:43:58 +00:00
|
|
|
];
|
2018-04-07 14:13:05 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-07-31 13:59:22 +01:00
|
|
|
propagatedBuildInputs = [ six ecdsa rsa future ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|