2021-10-14 00:43:12 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-08-04 22:07:22 +00:00
|
|
|
, python3
|
2021-10-14 00:43:12 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "urlscan";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.0.2";
|
2023-08-04 22:07:22 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "firecat53";
|
|
|
|
repo = pname;
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-nyq4BrpfbZwK/nOnB8ZEN1wlM8CssYVRvV7ytpX7k40=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
urwid
|
2021-10-14 00:43:12 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
# No tests available
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"urlscan"
|
|
|
|
];
|
2021-10-14 00:43:12 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mutt and terminal url selector (similar to urlview)";
|
|
|
|
homepage = "https://github.com/firecat53/urlscan";
|
2023-08-04 22:07:22 +00:00
|
|
|
changelog = "https://github.com/firecat53/urlscan/releases/tag/${version}";
|
2021-10-14 00:43:12 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ dpaetzel ];
|
|
|
|
mainProgram = "urlscan";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|