python311Packages.grappelli-safe: refactor

This commit is contained in:
natsukium 2023-10-08 17:42:23 +09:00
parent 57b1460b5f
commit 9b8f826b85
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -1,18 +1,34 @@
{ 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;
};
}