depot/third_party/nixpkgs/pkgs/development/python-modules/django-raster/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
944 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, isPy3k,
numpy, django_colorful, pillow, psycopg2,
pyparsing, django, celery, boto3, importlib-metadata
}:
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
buildPythonPackage rec {
version = "0.7";
pname = "django-raster";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "d23089d56f5f435c01a001af6f8ff7905636f87085b13035b4c5b3ace203d98a";
};
# Tests require a postgresql + postgis server
doCheck = false;
propagatedBuildInputs = [ numpy django_colorful pillow psycopg2
pyparsing django celery boto3 importlib-metadata ];
meta = with stdenv.lib; {
description = "Basic raster data integration for Django";
homepage = "https://github.com/geodesign/django-raster";
license = licenses.mit;
};
}