diff --git a/pkgs/development/python-modules/pyshp/default.nix b/pkgs/development/python-modules/pyshp/default.nix new file mode 100644 index 00000000000..4629331e52d --- /dev/null +++ b/pkgs/development/python-modules/pyshp/default.nix @@ -0,0 +1,21 @@ +{ stdenv, buildPythonPackage, fetchPypi +, setuptools }: + +buildPythonPackage rec { + version = "1.2.3"; + pname = "pyshp"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "e18cc19659dadc5ddaa891eb780a6958094da0cf105a1efe0f67e75b4fa1cdf9"; + }; + + buildInputs = [ setuptools ]; + + meta = with stdenv.lib; { + description = "Pure Python read/write support for ESRI Shapefile format"; + homepage = https://github.com/GeospatialPython/pyshp; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e606bac98c6..9831d302111 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17819,30 +17819,7 @@ in { pyrr = callPackage ../development/python-modules/pyrr { }; - meta = { - description = "3D mathematical functions using NumPy"; - homepage = https://github.com/adamlwgriffiths/Pyrr/; - license = licenses.bsd2; - }; - }; - - pyshp = buildPythonPackage rec { - name = "pyshp-${version}"; - version = "1.2.3"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyshp/pyshp-${version}.tar.gz"; - sha256 = "e18cc19659dadc5ddaa891eb780a6958094da0cf105a1efe0f67e75b4fa1cdf9"; - }; - - buildInputs = with self; [ setuptools ]; - - meta = { - description = "Pure Python read/write support for ESRI Shapefile format"; - homepage = https://github.com/GeospatialPython/pyshp; - license = licenses.mit; - }; - }; + pyshp = callPackage ../development/python-modules/pyshp { }; pyspread = callPackage ../development/python-modules/pyspread { };