mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 22:04:20 +00:00
python311Packages.grappelli-safe: refactor
This commit is contained in:
parent
57b1460b5f
commit
9b8f826b85
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user