2021-07-05 22:22:49 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ecdsa
|
|
|
|
, rsa
|
|
|
|
, pycrypto
|
|
|
|
, pyasn1
|
|
|
|
, pycryptodome
|
|
|
|
, cryptography
|
2020-06-11 09:39:36 +01:00
|
|
|
, pytestCheckHook
|
2017-03-15 23:43:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "python-jose";
|
2021-07-05 22:22:49 +01:00
|
|
|
version = "3.3.0";
|
2018-04-07 14:13:05 +01:00
|
|
|
|
2017-03-15 23:43:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpdavis";
|
2021-07-05 22:22:49 +01:00
|
|
|
repo = pname;
|
2018-12-03 14:01:09 +00:00
|
|
|
rev = version;
|
2021-07-05 22:22:49 +01:00
|
|
|
sha256 = "sha256-6VGC6M5oyGCOiXcYp6mpyhL+JlcYZKIqOQU9Sm/TkKM=";
|
2017-03-15 23:43:58 +00:00
|
|
|
};
|
|
|
|
|
2021-07-05 22:22:49 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
ecdsa
|
|
|
|
pyasn1
|
2018-12-03 14:01:09 +00:00
|
|
|
pycrypto
|
2021-07-05 22:22:49 +01:00
|
|
|
pycryptodome
|
|
|
|
rsa
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2020-06-11 09:39:36 +01:00
|
|
|
pytestCheckHook
|
2017-03-15 23:43:58 +00:00
|
|
|
];
|
2018-04-07 14:13:05 +01:00
|
|
|
|
2021-07-05 22:22:49 +01:00
|
|
|
postPatch = ''
|
2020-10-28 18:21:49 +00:00
|
|
|
substituteInPlace setup.py \
|
2021-07-05 22:22:49 +01:00
|
|
|
--replace '"pytest-runner",' ""
|
2020-10-28 18:21:49 +00:00
|
|
|
'';
|
|
|
|
|
2021-07-05 22:22:49 +01:00
|
|
|
pythonImportsCheck = [ "jose" ];
|
2018-04-07 14:13:05 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +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;
|
2021-07-05 22:22:49 +01:00
|
|
|
maintainers = with maintainers; [ jhhuh ];
|
2017-03-15 23:43:58 +00:00
|
|
|
};
|
|
|
|
}
|