From 0a339f5a55e5dde637dc3f01d1f4d9c7da186c9b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 12 Jan 2018 11:31:09 +0100 Subject: [PATCH] sigal: Use fetchPypi instead of fetchurl --- pkgs/applications/misc/sigal/default.nix | 8 ++++---- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/sigal/default.nix b/pkgs/applications/misc/sigal/default.nix index d66ca8586ec4..e08ccbb025fd 100644 --- a/pkgs/applications/misc/sigal/default.nix +++ b/pkgs/applications/misc/sigal/default.nix @@ -1,11 +1,11 @@ -{ lib, buildPythonApplication, fetchurl, pythonPackages }: +{ lib, buildPythonApplication, fetchPypi, pythonPackages }: buildPythonApplication rec { version = "1.0.1"; - name = "sigal-${version}"; + pname = "sigal"; - src = fetchurl { - url = "mirror://pypi/s/sigal/${name}.tar.gz"; + src = fetchPypi { + inherit version pname; sha256 = "198g2r8bii6a0p44mlk1wg07jjv95xpfvnqhhxxziqpizc776b34"; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f23bc44c6a73..426af532a988 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4520,7 +4520,7 @@ with pkgs; siege = callPackage ../tools/networking/siege {}; sigal = callPackage ../applications/misc/sigal { - inherit (pythonPackages) buildPythonApplication; + inherit (pythonPackages) buildPythonApplication fetchPypi; }; sigil = libsForQt56.callPackage ../applications/editors/sigil { };