2021-07-14 22:03:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ecdsa
|
|
|
|
, rsa
|
|
|
|
, pycrypto
|
|
|
|
, pyasn1
|
|
|
|
, pycryptodome
|
|
|
|
, cryptography
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-jose";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "3.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpdavis";
|
2021-07-14 22:03:04 +00:00
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-6VGC6M5oyGCOiXcYp6mpyhL+JlcYZKIqOQU9Sm/TkKM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
ecdsa
|
|
|
|
pyasn1
|
2020-04-24 23:36:52 +00:00
|
|
|
pycrypto
|
2021-07-14 22:03:04 +00:00
|
|
|
pycryptodome
|
|
|
|
rsa
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-06-15 15:56:04 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
postPatch = ''
|
2020-11-03 02:18:15 +00:00
|
|
|
substituteInPlace setup.py \
|
2021-07-14 22:03:04 +00:00
|
|
|
--replace '"pytest-runner",' ""
|
2020-11-03 02:18:15 +00:00
|
|
|
'';
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
pythonImportsCheck = [ "jose" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mpdavis/python-jose";
|
|
|
|
description = "A JOSE implementation in Python";
|
|
|
|
license = licenses.mit;
|
2021-07-14 22:03:04 +00:00
|
|
|
maintainers = with maintainers; [ jhhuh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|