Skip to content

Commit

Permalink
pythonPackages.pyshp : move to separate expression
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzup committed Aug 31, 2017
1 parent b9eebaf commit 489bfcf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
21 changes: 21 additions & 0 deletions pkgs/development/python-modules/pyshp/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
25 changes: 1 addition & 24 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };

Expand Down

0 comments on commit 489bfcf

Please sign in to comment.