Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, django }: 2 3buildPythonPackage rec { 4 pname = "django-ipware"; 5 version = "3.0.1"; 6 7 meta = { 8 description = "A Django application to retrieve user's IP address"; 9 homepage = "https://github.com/un33k/django-ipware"; 10 license = lib.licenses.mit; 11 }; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "73a640a5bff00aa7503a35e92e462001cfabb07d73d649c262f117423beee953"; 16 }; 17 18 propagatedBuildInputs = [ django ]; 19 20 # 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. 21 doCheck = false; 22}