Files
nixpkgs/pkgs/development/python-modules/grappelli-safe/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

45 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
version = "1.1.1";
pname = "grappelli-safe";
pyproject = true;
src = fetchPypi {
pname = "grappelli_safe";
inherit version;
hash = "sha256-7jSz4qNxFJix+No9naqKEjnv3yVaISGBdCtqWJD6wDk=";
};
nativeBuildInputs = [ setuptools ];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [ "grappelli_safe" ];
meta = {
description = "Snapshot of django-grappelli for the Mezzanine CMS";
longDescription = ''
grappelli_safe was created to provide a snapshot of the
Grappelli admin skin for Django, to be referenced as a
dependency for the Mezzanine CMS for Django.
At the time of grappelli_safe's creation, Grappelli was
incorrectly packaged on PyPI, and had also dropped compatibility
with Django 1.1 - grappelli_safe was therefore created to
address these specific issues.
'';
homepage = "https://github.com/stephenmcd/grappelli-safe";
downloadPage = "http://pypi.python.org/pypi/grappelli_safe/";
changelog = "https://github.com/stephenmcd/grappelli-safe/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ prikhi ];
};
}