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
50
pkgs/development/python-modules/basemap/default.nix
Normal file
50
pkgs/development/python-modules/basemap/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonAtLeast
|
||||
, numpy
|
||||
, matplotlib
|
||||
, pillow
|
||||
, setuptools
|
||||
, pyproj
|
||||
, pyshp
|
||||
, six
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "basemap";
|
||||
version = "1.3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matplotlib";
|
||||
repo = "basemap";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-onNdOQL4i6GTcuCRel5yanJ2EQ5iYClp+imuBObXF2I=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy matplotlib pillow pyproj pyshp six ];
|
||||
buildInputs = [ setuptools pkgs.geos ];
|
||||
|
||||
# Standard configurePhase from `buildPythonPackage` seems to break the setup.py script
|
||||
configurePhase = ''
|
||||
export GEOS_DIR=${pkgs.geos}
|
||||
'';
|
||||
|
||||
# The 'check' target is not supported by the `setup.py` script.
|
||||
# TODO : do the post install checks (`cd examples && ${python.interpreter} run_all.py`)
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://matplotlib.org/basemap/";
|
||||
description = "Plot data on map projections with matplotlib";
|
||||
longDescription = ''
|
||||
An add-on toolkit for matplotlib that lets you plot data on map projections with
|
||||
coastlines, lakes, rivers and political boundaries. See
|
||||
http://matplotlib.github.com/basemap/users/examples.html for examples of what it can do.
|
||||
'';
|
||||
license = with licenses; [ mit gpl2 ];
|
||||
broken = pythonAtLeast "3.9";
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue