treewide: use `addBinToPathHook`, minor cleanups (#379187)
[NixPkgs.git] / pkgs / by-name / ur / urlscan / package.nix
blob0b7336b23305df7d1e7fb0887eb13820697606f8
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "urlscan";
9   version = "1.0.6";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "firecat53";
14     repo = "urlscan";
15     tag = version;
16     hash = "sha256-VbpKMaEjchfpLECCt1YtmiVynYgSLgAVP1iuHL7t8FQ=";
17   };
19   build-system = with python3.pkgs; [
20     hatchling
21     hatch-vcs
22   ];
24   dependencies = with python3.pkgs; [ urwid ];
26   # No tests available
27   doCheck = false;
29   pythonImportsCheck = [ "urlscan" ];
31   meta = with lib; {
32     description = "Mutt and terminal url selector (similar to urlview)";
33     homepage = "https://github.com/firecat53/urlscan";
34     changelog = "https://github.com/firecat53/urlscan/releases/tag/${version}";
35     license = licenses.gpl2Plus;
36     maintainers = with maintainers; [ dpaetzel ];
37     mainProgram = "urlscan";
38   };