From 3414470d9d3ec273bfe255abef6c92febff308b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20P=C3=A4tzel?= Date: Sun, 23 Oct 2016 16:25:08 +0200 Subject: [PATCH] urlscan: init at 0.8.3 --- lib/maintainers.nix | 1 + pkgs/applications/misc/urlscan/default.nix | 25 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 28 insertions(+) create mode 100644 pkgs/applications/misc/urlscan/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 6e39439e0b60..2431d56d9f88 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -129,6 +129,7 @@ dochang = "Desmond O. Chang "; domenkozar = "Domen Kozar "; doublec = "Chris Double "; + dpaetzel = "David Pätzel "; drets = "Dmytro Rets "; drewkett = "Andrew Burkett "; dtzWill = "Will Dietz "; diff --git a/pkgs/applications/misc/urlscan/default.nix b/pkgs/applications/misc/urlscan/default.nix new file mode 100644 index 000000000000..2d01d203ba1e --- /dev/null +++ b/pkgs/applications/misc/urlscan/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, isPy35, fetchFromGitHub, urwid }: + +buildPythonPackage rec { + name = "urlscan-${version}"; + version = "0.8.3"; + + src = fetchFromGitHub { + owner = "firecat53"; + repo = "urlscan"; + rev = version; + # (equivalent but less nice(?): rev = "00333f6d03bf3151c9884ec778715fc605f58cc5") + sha256 = "0l40anfznam4d3q0q0jp2wwfrvfypz9ppbpjyzjdrhb3r2nizb0y"; + }; + + propagatedBuildInputs = [ urwid ]; + + # FIXME doesn't work with 2.7; others than 2.7 and 3.5 were not tested (yet) + disabled = ! isPy35; + + meta = with stdenv.lib; { + description = "Mutt and terminal url selector (similar to urlview)"; + license = licenses.gpl2; + maintainers = [ maintainers.dpaetzel ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fc48d6eda863..4a3a7c6e3c92 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -31725,6 +31725,8 @@ EOF }; }; + urlscan = callPackage ../applications/misc/urlscan { }; + wp_export_parser = buildPythonPackage rec { name = "${pname}-${version}"; pname = "wp_export_parser";