uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
56
pkgs/development/python-modules/geopandas/default.nix
Normal file
56
pkgs/development/python-modules/geopandas/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder
|
||||
, pandas, shapely, fiona, pyproj
|
||||
, pytestCheckHook, Rtree }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "geopandas";
|
||||
version = "0.10.2";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "geopandas";
|
||||
repo = "geopandas";
|
||||
rev = "v${version}";
|
||||
sha256 = "14azl3gppqn90k8h4hpjilsivj92k6p1jh7mdr6p4grbww1b7sdq";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes a test, will be included in the next release after 0.10.2
|
||||
(fetchpatch {
|
||||
url = "https://github.com/geopandas/geopandas/pull/2219/commits/ac67515c9df745b672cca1669adf05eaf5cb0f3b.patch";
|
||||
sha256 = "sha256-XcaoFhD6Rq0nfEpMbOJiAWPbaPDrMwFwoyppayq8NHc=";
|
||||
})
|
||||
# 5 commits from post 0.10.2 that fix the test suite compatibility with pandas >=1.4
|
||||
(fetchpatch {
|
||||
url = "https://github.com/geopandas/geopandas/pull/2289.patch";
|
||||
sha256 = "sha256-BcZVdaO/DdpZoVGUWaw9etFvvgwizAgrkaBISEOhV4A=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pandas
|
||||
shapely
|
||||
fiona
|
||||
pyproj
|
||||
];
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
preCheck = ''
|
||||
# Wants to write test files into $HOME.
|
||||
export HOME="$TMPDIR"
|
||||
'';
|
||||
checkInputs = [ pytestCheckHook Rtree ];
|
||||
disabledTests = [
|
||||
# requires network access
|
||||
"test_read_file_remote_geojson_url"
|
||||
"test_read_file_remote_zipfile_url"
|
||||
];
|
||||
pytestFlagsArray = [ "geopandas" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python geospatial data analysis framework";
|
||||
homepage = "https://geopandas.org";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ knedlsepp ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue