From efd657fb8982ddc8986656659f9db19bb8b0fe3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Maret?= Date: Mon, 2 Dec 2019 11:07:26 +0100 Subject: [PATCH] python: spectral-cube: 0.4.4 -> 0.4.5 Co-Authored-By: Mario Rodas --- .../python-modules/spectral-cube/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/spectral-cube/default.nix b/pkgs/development/python-modules/spectral-cube/default.nix index e12f00cf7a7..39edcf9b8f5 100644 --- a/pkgs/development/python-modules/spectral-cube/default.nix +++ b/pkgs/development/python-modules/spectral-cube/default.nix @@ -1,5 +1,5 @@ { lib -, fetchPypi +, fetchFromGitHub , buildPythonPackage , astropy , radio_beam @@ -10,11 +10,14 @@ buildPythonPackage rec { pname = "spectral-cube"; - version = "0.4.4"; + version = "0.4.5"; - src = fetchPypi { - inherit pname version; - sha256 = "9051ede204b1e25b6358b5e0e573b624ec0e208c24eb03a7ed4925b745c93b5e"; + # Fetch from GitHub instead of PyPi, as 0.4.5 isn't available in PyPi + src = fetchFromGitHub { + owner = "radio-astro-tools"; + repo = pname; + rev = "v${version}"; + sha256 = "1xc1m6vpl0bm600fx9vypa7zcvwg7yvhgn0w89y6v9d1vl0qcs7z"; }; propagatedBuildInputs = [ astropy radio_beam ]; @@ -40,8 +43,6 @@ buildPythonPackage rec { license = lib.licenses.bsd3; platforms = lib.platforms.all; maintainers = with lib.maintainers; [ smaret ]; - broken = true; }; } -