depot/third_party/nixpkgs/pkgs/development/python-modules/myjwt/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

73 lines
1.3 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
click,
colorama,
cryptography,
exrex,
fetchFromGitHub,
poetry-core,
pyopenssl,
pyperclip,
pytest-mock,
pytestCheckHook,
pythonOlder,
questionary,
requests,
requests-mock,
}:
buildPythonPackage rec {
pname = "myjwt";
version = "2.1.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "mBouamama";
repo = "MyJWT";
rev = "refs/tags/${version}";
hash = "sha256-jqBnxo7Omn5gLMCQ7SNbjo54nyFK7pn94796z2Qc9lg=";
};
pythonRelaxDeps = [
"cryptography"
"pyopenssl"
"questionary"
];
build-system = [
poetry-core
];
dependencies = [
click
colorama
cryptography
exrex
pyopenssl
pyperclip
questionary
requests
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "myjwt" ];
meta = with lib; {
description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)";
homepage = "https://github.com/mBouamama/MyJWT";
changelog = "https://github.com/tyki6/MyJWT/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
# Build failures
broken = stdenv.hostPlatform.isDarwin;
};
}