Unverified Commit 9b8f826b authored by natsukium's avatar natsukium
Browse files

python311Packages.grappelli-safe: refactor

parent 57b1460b
Loading
Loading
Loading
Loading
+19 −4
Original line number Diff line number Diff line
{ 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;
    sha256 = "ee34b3e2a3711498b1f8da3d9daa8a1239efdf255a212181742b6a5890fac039";
    hash = "sha256-7jSz4qNxFJix+No9naqKEjnv3yVaISGBdCtqWJD6wDk=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  # upstream has no tests
  doCheck = false;

  pythonImportsCheck = [
    "grappelli_safe"
  ];

  meta = with lib; {
    description = "A snapshot of django-grappelli for the Mezzanine CMS";
    longDescription = ''
@@ -27,9 +43,8 @@ buildPythonPackage rec {
    '';
    homepage = "https://github.com/stephenmcd/grappelli-safe";
    downloadPage = "http://pypi.python.org/pypi/grappelli_safe/";
    license = licenses.free;
    changelog = "https://github.com/stephenmcd/grappelli-safe/releases/tag/v${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ prikhi ];
    platforms = platforms.unix;
  };

}