diff --git a/pkgs/development/python-modules/pyplatec/default.nix b/pkgs/development/python-modules/pyplatec/default.nix new file mode 100644 index 000000000000..a17c650e0f0e --- /dev/null +++ b/pkgs/development/python-modules/pyplatec/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "PyPlatec"; + version = "1.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0kqx33flcrrlipccmqs78d14pj5749bp85b6k5fgaq2c7yzz02jg"; + }; + + meta = with stdenv.lib; { + description = "Library to simulate plate tectonics with Python bindings"; + homepage = https://github.com/Mindwerks/plate-tectonics; + license = licenses.lgpl3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 15c23f6acb90..9a6d26356d70 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3459,21 +3459,7 @@ in { pypcap = callPackage ../development/python-modules/pypcap {}; - pyplatec = buildPythonPackage rec { - name = "PyPlatec-${version}"; - version = "1.4.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/P/PyPlatec/${name}.tar.gz"; - sha256 = "0kqx33flcrrlipccmqs78d14pj5749bp85b6k5fgaq2c7yzz02jg"; - }; - - meta = { - description = "Library to simulate plate tectonics with Python bindings"; - homepage = https://github.com/Mindwerks/plate-tectonics; - license = licenses.lgpl3; - }; - }; + pyplatec = callPackage ../development/python-modules/pyplatec { }; purepng = buildPythonPackage rec { name = "purepng-${version}";