diff options
Diffstat (limited to 'pkgs/tools/networking/urlwatch/default.nix')
-rw-r--r-- | pkgs/tools/networking/urlwatch/default.nix | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/pkgs/tools/networking/urlwatch/default.nix b/pkgs/tools/networking/urlwatch/default.nix index 3634b852fadc..c1b19f745a3f 100644 --- a/pkgs/tools/networking/urlwatch/default.nix +++ b/pkgs/tools/networking/urlwatch/default.nix @@ -1,17 +1,16 @@ -{ stdenv, fetchurl, python3Packages }: +{ stdenv, fetchFromGitHub, python3Packages }: python3Packages.buildPythonApplication rec { - name = "urlwatch-2.2"; + name = "urlwatch-${version}"; + version = "2.5"; - src = fetchurl { - url = "http://thp.io/2008/urlwatch/${name}.tar.gz"; - sha256 = "0s9056mm1hkj5gpzsb5bz6fwxk0nm73i0dhnqwa1bfddjnvpl9d3"; + src = fetchFromGitHub { + owner = "thp"; + repo = "urlwatch"; + rev = version; + sha256 = "0irz54nvyq3cxa3fvjc5k2836a5nmly4wiiy4s5cwib1rnwg6r94"; }; - patches = [ - ./setup.patch - ]; - propagatedBuildInputs = with python3Packages; [ keyring minidb @@ -19,14 +18,10 @@ python3Packages.buildPythonApplication rec { requests2 ]; - postFixup = '' - wrapProgram "$out/bin/urlwatch" --prefix "PYTHONPATH" : "$PYTHONPATH" - ''; - - meta = { + meta = with stdenv.lib; { description = "A tool for monitoring webpages for updates"; homepage = https://thp.io/2008/urlwatch/; - license = stdenv.lib.licenses.bsd3; - maintainers = [ stdenv.lib.maintainers.tv ]; + license = licenses.bsd3; + maintainers = with maintainers; [ tv ]; }; } |