From 65aba6ed172b26ac97cf25c6fc123a7e58deca87 Mon Sep 17 00:00:00 2001 From: Ruben Maher Date: Fri, 1 Sep 2017 21:17:40 +0930 Subject: [PATCH] pythonPackages.semantic-version: use fetchPypi In order to make it nicer to override when a specific version is required for Python derivations. --- pkgs/top-level/python-packages.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 04fd8d2ed11b..22823acee24a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20318,9 +20318,12 @@ in { }; semantic-version = buildPythonPackage rec { - name = "semantic_version-2.4.2"; - src = pkgs.fetchurl { - url = "mirror://pypi/s/semantic_version/${name}.tar.gz"; + pname = "semantic_version"; + version = "2.4.2"; + name = "${pname}${version}"; + + src = self.fetchPypi { + inherit pname version; sha256 = "7e8b7fa74a3bc9b6e90b15b83b9bc2377c78eaeae3447516425f475d5d6932d2"; };