From d697403303faccc4349da1a248b2dd9ef16dd023 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 20 Sep 2017 13:03:19 +0200 Subject: [PATCH 1/2] khal: 0.9.5 -> 0.9.7 --- pkgs/applications/misc/khal/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/khal/default.nix b/pkgs/applications/misc/khal/default.nix index 98dbb0cbf911..1864c754a26f 100644 --- a/pkgs/applications/misc/khal/default.nix +++ b/pkgs/applications/misc/khal/default.nix @@ -3,12 +3,12 @@ with python3Packages; buildPythonApplication rec { - version = "0.9.5"; + version = "0.9.7"; name = "khal-${version}"; src = fetchurl { url = "mirror://pypi/k/khal/khal-${version}.tar.gz"; - sha256 = "0fvv0kjym9q8v20zbpr5m8ig65b8hva4p0c935qsdvgdni68jidr"; + sha256 = "0x1p62ff7ggb172rjr6sbdrjh1gl3ck3bwxsqlsix8i5wycwvnmv"; }; LC_ALL = "en_US.UTF-8"; From d5b46fdd803e115051adf3fb0e52a1104290aac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 21 Sep 2017 12:50:32 +0100 Subject: [PATCH 2/2] khal: use fetchPypi --- pkgs/applications/misc/khal/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/khal/default.nix b/pkgs/applications/misc/khal/default.nix index 1864c754a26f..1334f2317b9d 100644 --- a/pkgs/applications/misc/khal/default.nix +++ b/pkgs/applications/misc/khal/default.nix @@ -1,13 +1,14 @@ -{ stdenv, fetchurl, pkgs, python3Packages }: +{ stdenv, pkgs, python3Packages }: with python3Packages; buildPythonApplication rec { + name = "${pname}-${version}"; + pname = "khal"; version = "0.9.7"; - name = "khal-${version}"; - src = fetchurl { - url = "mirror://pypi/k/khal/khal-${version}.tar.gz"; + src = fetchPypi { + inherit pname version; sha256 = "0x1p62ff7ggb172rjr6sbdrjh1gl3ck3bwxsqlsix8i5wycwvnmv"; };