diff --git a/pkgs/development/python-modules/obspy/default.nix b/pkgs/development/python-modules/obspy/default.nix index be94fa1bd0c7..8133d63c6f2e 100644 --- a/pkgs/development/python-modules/obspy/default.nix +++ b/pkgs/development/python-modules/obspy/default.nix @@ -1,9 +1,13 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies decorator, - future, lxml, matplotlib, numpy, @@ -14,18 +18,22 @@ buildPythonPackage rec { pname = "obspy"; - version = "1.2.2"; - format = "setuptools"; + version = "1.4.1"; + pyproject = true; - src = fetchPypi { - inherit pname version; - extension = "zip"; - sha256 = "a0f2b0915beeb597762563fa0358aa1b4d6b09ffda49909c760b5cdf5bdc419e"; + src = fetchFromGitHub { + owner = "obspy"; + repo = "obspy"; + rev = "refs/tags/${version}"; + hash = "sha256-Y833OWWBDYduyky0+MRbPoBtATTytak87hgh68QAgfw="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + pythonRelaxDeps = [ "sqlalchemy" ]; + + dependencies = [ decorator - future lxml matplotlib numpy @@ -39,10 +47,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "obspy" ]; - meta = with lib; { + meta = { description = "Python framework for seismological observatories"; homepage = "https://www.obspy.org"; - license = licenses.lgpl3; - maintainers = [ maintainers.ametrine ]; + changelog = "https://github.com/obspy/obspy/releases/tag/${version}"; + license = lib.licenses.lgpl3Only; + maintainers = [ lib.maintainers.ametrine ]; }; }