Files
nixpkgs/pkgs/development/python-modules/grappelli-safe/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
version = "1.1.1";
pname = "grappelli-safe";
pyproject = true;
disabled = pythonOlder "3.6";
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 ];
};
}