pythonPackages.semantic-version: use fetchPypi

In order to make it nicer to override when a specific version is required for
Python derivations.
This commit is contained in:
Ruben Maher 2017-09-01 21:17:40 +09:30 committed by Frederik Rietdijk
parent 4101582270
commit 65aba6ed17

View file

@ -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";
};