nixpkgs/pkgs/applications/misc/urlscan/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
898 B
Nix
Raw Normal View History

2021-10-12 07:37:14 +00:00
{ lib
, fetchFromGitHub
2023-07-05 07:32:33 +00:00
, python3
2021-10-12 07:37:14 +00:00
}:
2016-10-23 14:25:08 +00:00
2023-07-05 07:32:33 +00:00
python3.pkgs.buildPythonApplication rec {
2018-03-11 09:40:56 +00:00
pname = "urlscan";
version = "1.0.1";
format = "pyproject";
2016-10-23 14:25:08 +00:00
src = fetchFromGitHub {
owner = "firecat53";
2018-03-11 09:40:56 +00:00
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-OzcoOIgEiadWrsUPIxBJTuZQYjScJBYKyqCu1or6fz8=";
2016-10-23 14:25:08 +00:00
};
nativeBuildInputs = with python3.pkgs; [
hatchling
hatch-vcs
];
2023-07-05 07:32:33 +00:00
propagatedBuildInputs = with python3.pkgs; [
urwid
2021-10-12 07:37:14 +00:00
];
2016-10-23 14:25:08 +00:00
2023-07-05 07:32:33 +00:00
# No tests available
doCheck = false;
2018-03-11 09:40:56 +00:00
2023-07-05 07:27:36 +00:00
pythonImportsCheck = [
"urlscan"
];
2021-10-12 07:37:14 +00:00
meta = with lib; {
2016-10-23 14:25:08 +00:00
description = "Mutt and terminal url selector (similar to urlview)";
homepage = "https://github.com/firecat53/urlscan";
2023-07-05 07:27:36 +00:00
changelog = "https://github.com/firecat53/urlscan/releases/tag/${version}";
2021-10-12 07:37:14 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dpaetzel ];
2023-12-11 20:45:13 +00:00
mainProgram = "urlscan";
2016-10-23 14:25:08 +00:00
};
}