diff --git a/pkgs/development/python-modules/drms/default.nix b/pkgs/development/python-modules/drms/default.nix index f079e61d6579..f87f932da4eb 100644 --- a/pkgs/development/python-modules/drms/default.nix +++ b/pkgs/development/python-modules/drms/default.nix @@ -1,41 +1,43 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, + + # build-system + setuptools, + setuptools-scm, + + # dependencies numpy, pandas, - six, + packaging, + astropy, - oldest-supported-numpy, pytestCheckHook, pytest-doctestplus, - pythonOlder, - setuptools-scm, - wheel, }: buildPythonPackage rec { pname = "drms"; - version = "0.8.0"; - format = "pyproject"; - disabled = pythonOlder "3.7"; + version = "0.9.0"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-LgHu7mTgiL3n2lVaOhppdWfQiM0CFkK+6z6eBkLxmKY="; + src = fetchFromGitHub { + owner = "sunpy"; + repo = "drms"; + tag = "v${version}"; + hash = "sha256-Hd65bpJCknBeRd27JlcIkzzoZv5nGR7C6oMSGPFiyjA="; }; - nativeBuildInputs = [ - numpy - oldest-supported-numpy + build-system = [ + setuptools setuptools-scm - wheel ]; - propagatedBuildInputs = [ + dependencies = [ numpy pandas - six + packaging ]; nativeCheckInputs = [ @@ -56,6 +58,7 @@ buildPythonPackage rec { meta = { description = "Access HMI, AIA and MDI data with Python"; homepage = "https://github.com/sunpy/drms"; + changelog = "https://github.com/sunpy/drms/blob/v${version}/CHANGELOG.rst"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ bot-wxt1221 ]; };