2018-09-09 11:34:18 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k,
|
2017-03-10 12:51:02 +01:00
|
|
|
numpy, django_colorful, pillow, psycopg2,
|
2018-10-01 22:02:11 +02:00
|
|
|
pyparsing, django, celery, boto3
|
2017-03-10 12:51:02 +01:00
|
|
|
}:
|
2018-10-01 22:02:11 +02:00
|
|
|
if stdenv.lib.versionOlder django.version "2.0"
|
|
|
|
then throw "django-raster requires Django >= 2.0. Consider overiding the python package set to use django_2."
|
|
|
|
else
|
2017-03-10 12:51:02 +01:00
|
|
|
buildPythonPackage rec {
|
2019-10-24 08:47:29 +02:00
|
|
|
version = "0.7";
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "django-raster";
|
2017-03-10 12:51:02 +01:00
|
|
|
|
2018-09-09 11:34:18 +02:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 08:47:29 +02:00
|
|
|
sha256 = "d23089d56f5f435c01a001af6f8ff7905636f87085b13035b4c5b3ace203d98a";
|
2017-03-10 12:51:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests require a postgresql + postgis server
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy django_colorful pillow psycopg2
|
2018-10-01 22:02:11 +02:00
|
|
|
pyparsing django celery boto3 ];
|
2017-03-10 12:51:02 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Basic raster data integration for Django";
|
|
|
|
homepage = https://github.com/geodesign/django-raster;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|