1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 version = "1.1.1";
11 pname = "grappelli-safe";
12 pyproject = true;
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 pname = "grappelli_safe";
18 inherit version;
19 hash = "sha256-7jSz4qNxFJix+No9naqKEjnv3yVaISGBdCtqWJD6wDk=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 # upstream has no tests
25 doCheck = false;
26
27 pythonImportsCheck = [ "grappelli_safe" ];
28
29 meta = with lib; {
30 description = "Snapshot of django-grappelli for the Mezzanine CMS";
31 longDescription = ''
32 grappelli_safe was created to provide a snapshot of the
33 Grappelli admin skin for Django, to be referenced as a
34 dependency for the Mezzanine CMS for Django.
35
36 At the time of grappelli_safe's creation, Grappelli was
37 incorrectly packaged on PyPI, and had also dropped compatibility
38 with Django 1.1 - grappelli_safe was therefore created to
39 address these specific issues.
40 '';
41 homepage = "https://github.com/stephenmcd/grappelli-safe";
42 downloadPage = "http://pypi.python.org/pypi/grappelli_safe/";
43 changelog = "https://github.com/stephenmcd/grappelli-safe/releases/tag/v${version}";
44 license = licenses.bsd3;
45 maintainers = with maintainers; [ prikhi ];
46 };
47}