Merge pull request #236107 from Janik-Haag/django-leaflet
python3Packages.django-leaflet: init at 0.29.0
This commit is contained in:
commit
245204ecce
39
pkgs/development/python-modules/django-leaflet/default.nix
Normal file
39
pkgs/development/python-modules/django-leaflet/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, django
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-leaflet";
|
||||
version = "0.29.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-L23Ixxh/0i5itvK3tC7thpIPgb7DEqplSYHr5byOCGY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
# The tests seem to be impure.
|
||||
# They are throwing a error about unset configs:
|
||||
# > django.core.exceptions.ImproperlyConfigured: Requested setting LEAFLET_CONFIG, but settings are not configured.
|
||||
doCheck = false;
|
||||
|
||||
# This dosn't work either because of the same exception as above
|
||||
# pythonImportsCheck = [ "leaflet" ];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Allows you to use Leaflet in your Django projects";
|
||||
homepage = "https://github.com/makinacorpus/django-leaflet";
|
||||
changelog = "https://github.com/makinacorpus/django-leaflet/blob/${version}/CHANGES";
|
||||
license = licenses.lgpl3Only;
|
||||
maintainers = with maintainers; [ janik ];
|
||||
};
|
||||
}
|
@ -2753,6 +2753,8 @@ self: super: with self; {
|
||||
|
||||
django-libsass = callPackage ../development/python-modules/django-libsass { };
|
||||
|
||||
django-leaflet = callPackage ../development/python-modules/django-leaflet { };
|
||||
|
||||
django-logentry-admin = callPackage ../development/python-modules/django-logentry-admin { };
|
||||
|
||||
django-login-required-middleware = callPackage ../development/python-modules/django-login-required-middleware { };
|
||||
|
Loading…
Reference in New Issue
Block a user