diff --git a/pkgs/by-name/my/myjwt/package.nix b/pkgs/by-name/my/myjwt/package.nix new file mode 100644 index 000000000000..f9eab6df328f --- /dev/null +++ b/pkgs/by-name/my/myjwt/package.nix @@ -0,0 +1 @@ +{ python3Packages }: with python3Packages; toPythonApplication myjwt diff --git a/pkgs/development/python-modules/myjwt/default.nix b/pkgs/development/python-modules/myjwt/default.nix index 1b791667b90e..45f5c4b89b6c 100644 --- a/pkgs/development/python-modules/myjwt/default.nix +++ b/pkgs/development/python-modules/myjwt/default.nix @@ -12,7 +12,6 @@ pyperclip, pytest-mock, pytestCheckHook, - pythonOlder, questionary, requests, requests-mock, @@ -23,8 +22,6 @@ buildPythonPackage rec { version = "2.1.0"; pyproject = true; - disabled = pythonOlder "3.10"; - src = fetchFromGitHub { owner = "mBouamama"; repo = "MyJWT"; @@ -38,9 +35,7 @@ buildPythonPackage rec { "questionary" ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ click @@ -61,12 +56,13 @@ buildPythonPackage rec { pythonImportsCheck = [ "myjwt" ]; - meta = with lib; { + meta = { 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 ]; + changelog = "https://github.com/tyki6/MyJWT/releases/tag/${src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "myjwt"; # Build failures broken = stdenv.hostPlatform.isDarwin; };