Files
nixpkgs/pkgs/development/python-modules/django-leaflet/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

40 lines
1010 B
Nix

{
lib,
buildPythonPackage,
django,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
pname = "django-leaflet";
version = "0.32.0";
pyproject = true;
src = fetchPypi {
pname = "django_leaflet";
inherit version;
hash = "sha256-ATzLBu4IBxyuyYpl3/1oqzaU2vznLK/zTz1481VoriU=";
};
build-system = [ setuptools ];
dependencies = [ 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 = {
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 = lib.licenses.lgpl3Only;
maintainers = [ ];
};
}