2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
colorama,
|
|
|
|
cryptography,
|
|
|
|
exrex,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pyopenssl,
|
|
|
|
pyperclip,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
questionary,
|
|
|
|
requests,
|
|
|
|
requests-mock,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "myjwt";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.1.0";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mBouamama";
|
|
|
|
repo = "MyJWT";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-jqBnxo7Omn5gLMCQ7SNbjo54nyFK7pn94796z2Qc9lg=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"cryptography"
|
2024-04-21 15:54:59 +00:00
|
|
|
"pyopenssl"
|
2024-02-07 01:22:34 +00:00
|
|
|
"questionary"
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2023-03-15 16:39:30 +00:00
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-03-09 03:18:52 +00:00
|
|
|
click
|
|
|
|
colorama
|
|
|
|
cryptography
|
|
|
|
exrex
|
|
|
|
pyopenssl
|
|
|
|
pyperclip
|
|
|
|
questionary
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
pytest-mock
|
2021-05-20 23:08:51 +00:00
|
|
|
pytestCheckHook
|
2021-03-09 03:18:52 +00:00
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "myjwt" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)";
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "https://github.com/mBouamama/MyJWT";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/tyki6/MyJWT/releases/tag/${version}";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
# Build failures
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
};
|
|
|
|
}
|