1{ pkgs 2, buildPythonPackage 3, django 4, fetchPypi 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "django-leaflet"; 10 version = "0.29.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-L23Ixxh/0i5itvK3tC7thpIPgb7DEqplSYHr5byOCGY="; 18 }; 19 20 propagatedBuildInputs = [ 21 django 22 ]; 23 24 # The tests seem to be impure. 25 # They are throwing a error about unset configs: 26 # > django.core.exceptions.ImproperlyConfigured: Requested setting LEAFLET_CONFIG, but settings are not configured. 27 doCheck = false; 28 29 # This dosn't work either because of the same exception as above 30 # pythonImportsCheck = [ "leaflet" ]; 31 32 meta = with pkgs.lib; { 33 description = "Allows you to use Leaflet in your Django projects"; 34 homepage = "https://github.com/makinacorpus/django-leaflet"; 35 changelog = "https://github.com/makinacorpus/django-leaflet/blob/${version}/CHANGES"; 36 license = licenses.lgpl3Only; 37 maintainers = with maintainers; [ janik ]; 38 }; 39}