mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 22:57:00 +00:00
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`.
23 lines
747 B
Nix
23 lines
747 B
Nix
{ lib, buildPythonPackage, fetchPypi, django }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-ipware";
|
|
version = "2.1.0";
|
|
|
|
meta = {
|
|
description = "A Django application to retrieve user's IP address";
|
|
homepage = https://github.com/un33k/django-ipware;
|
|
license = lib.licenses.mit;
|
|
};
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a7c7a8fd019dbdc9c357e6e582f65034e897572fc79a7e467674efa8aef9d00b";
|
|
};
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
# django.core.exceptions.ImproperlyConfigured: Requested setting IPWARE_TRUSTED_PROXY_LIST, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
|
|
doCheck = false;
|
|
}
|