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
98
pkgs/development/python-modules/rasterio/default.nix
Normal file
98
pkgs/development/python-modules/rasterio/default.nix
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# build time
|
||||
, cython
|
||||
, gdal
|
||||
|
||||
# runtime
|
||||
, affine
|
||||
, attrs
|
||||
, boto3
|
||||
, click
|
||||
, click-plugins
|
||||
, cligj
|
||||
, matplotlib
|
||||
, numpy
|
||||
, snuggs
|
||||
, setuptools
|
||||
|
||||
# tests
|
||||
, hypothesis
|
||||
, packaging
|
||||
, pytest-randomly
|
||||
, pytestCheckHook
|
||||
, shapely
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rasterio";
|
||||
version = "1.2.10"; # not x.y[ab]z, those are alpha/beta versions
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
# Pypi doesn't ship the tests, so we fetch directly from GitHub
|
||||
src = fetchFromGitHub {
|
||||
owner = "rasterio";
|
||||
repo = "rasterio";
|
||||
rev = version;
|
||||
hash = "sha256-xVGwQfQvxsqYihUYXENJAz9Qp9xBkhsGc/RheRTJxgo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
gdal
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
affine
|
||||
attrs
|
||||
boto3
|
||||
click
|
||||
click-plugins
|
||||
cligj
|
||||
matplotlib
|
||||
numpy
|
||||
snuggs
|
||||
setuptools # needs pkg_resources at runtime
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
rm -rf rasterio
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytest-randomly
|
||||
pytestCheckHook
|
||||
packaging
|
||||
hypothesis
|
||||
shapely
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-m 'not network'"
|
||||
];
|
||||
|
||||
disabledTests = lib.optionals stdenv.isDarwin [
|
||||
"test_reproject_error_propagation"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"rasterio"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
$out/bin/rio --version | grep ${version} > /dev/null
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python package to read and write geospatial raster data";
|
||||
homepage = "https://rasterio.readthedocs.io/en/latest/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ mredaelli ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue