summary refs log tree commit diff
path: root/pkgs/development/python-modules/geopandas
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-09-05 08:20:30 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-09-05 08:20:30 +0100
commit1dbe68a5e8d52a70d815671023566058a14c70fc (patch)
tree10800a2f14de4a2cd495d341f5e9d82024dbfd51 /pkgs/development/python-modules/geopandas
parent05ac3f95209ed3b233191c9ffe6123c542726259 (diff)
downloadnixpkgs-1dbe68a5e8d52a70d815671023566058a14c70fc.tar
nixpkgs-1dbe68a5e8d52a70d815671023566058a14c70fc.tar.gz
nixpkgs-1dbe68a5e8d52a70d815671023566058a14c70fc.tar.bz2
nixpkgs-1dbe68a5e8d52a70d815671023566058a14c70fc.tar.lz
nixpkgs-1dbe68a5e8d52a70d815671023566058a14c70fc.tar.xz
nixpkgs-1dbe68a5e8d52a70d815671023566058a14c70fc.tar.zst
nixpkgs-1dbe68a5e8d52a70d815671023566058a14c70fc.zip
python.pkgs.geopandas: fix tests
Diffstat (limited to 'pkgs/development/python-modules/geopandas')
-rw-r--r--pkgs/development/python-modules/geopandas/default.nix22
1 files changed, 15 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/geopandas/default.nix b/pkgs/development/python-modules/geopandas/default.nix
index c048f9d01ed..f8f54e0e429 100644
--- a/pkgs/development/python-modules/geopandas/default.nix
+++ b/pkgs/development/python-modules/geopandas/default.nix
@@ -1,16 +1,24 @@
-{ stdenv, buildPythonPackage, fetchPypi,
-  pandas, shapely, fiona, descartes, pyproj }:
+{ stdenv, buildPythonPackage, fetchFromGitHub
+, pandas, shapely, fiona, descartes, pyproj
+, pytest }:
 
 buildPythonPackage rec {
-  pname = "geopandas";
+  name = "geopandas-${version}";
   version = "0.3.0";
-  name = "${pname}-${version}";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "02wj58aqyq1nr0axz2vci72zvpkmalrj570lrndqqvai7qmb6fz6";
+  src = fetchFromGitHub {
+    owner = "geopandas";
+    repo = "geopandas";
+    rev = "v${version}";
+    sha256 = "0maafafr7sjjmlg2f19bizg06c8a5z5igmbcgq6kgmi7rklx8xxz";
   };
 
+  checkInputs = [ pytest ];
+
+  checkPhase = ''
+    py.test geopandas
+  '';
+
   propagatedBuildInputs = [
     pandas
     shapely