python.pkgs.geopandas: fix tests
This commit is contained in:
parent
05ac3f9520
commit
1dbe68a5e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user