forked from mirrors/nixpkgs
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
26 lines
696 B
Nix
26 lines
696 B
Nix
{ stdenv, buildPythonPackage, fetchPypi,
|
|
numpy, django_colorful, pillow, psycopg2,
|
|
pyparsing, django, celery
|
|
}:
|
|
buildPythonPackage rec {
|
|
version = "0.6";
|
|
pname = "django-raster";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9a0f8e71ebeeeb5380c6ca68e027e9de335f43bc15e89dd22e7a470c4eb7aeb8";
|
|
};
|
|
|
|
# Tests require a postgresql + postgis server
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [ numpy django_colorful pillow psycopg2
|
|
pyparsing django celery ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Basic raster data integration for Django";
|
|
homepage = https://github.com/geodesign/django-raster;
|
|
license = licenses.mit;
|
|
};
|
|
}
|