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