Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 927 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k, 2 numpy, django_colorful, pillow, psycopg2, 3 pyparsing, django, celery, boto3, importlib-metadata 4}: 5if lib.versionOlder django.version "2.0" 6then throw "django-raster requires Django >= 2.0. Consider overiding the python package set to use django_2." 7else 8buildPythonPackage rec { 9 version = "0.8"; 10 pname = "django-raster"; 11 12 disabled = !isPy3k; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "9417d8a17930dffee4719f79a38c6ab5d20ac7145d4edf88df0abcb5a360de51"; 17 }; 18 19 # Tests require a postgresql + postgis server 20 doCheck = false; 21 22 propagatedBuildInputs = [ numpy django_colorful pillow psycopg2 23 pyparsing django celery boto3 importlib-metadata ]; 24 25 meta = with lib; { 26 description = "Basic raster data integration for Django"; 27 homepage = "https://github.com/geodesign/django-raster"; 28 license = licenses.mit; 29 }; 30}