lol

python311Packages.grappelli-safe: refactor

+19 -4
+19 -4
pkgs/development/python-modules/grappelli-safe/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , pythonOlder 5 + , setuptools 4 6 }: 5 7 6 8 buildPythonPackage rec { 7 9 version = "1.1.1"; 8 10 pname = "grappelli-safe"; 11 + pyproject = true; 12 + 13 + disabled = pythonOlder "3.6"; 9 14 10 15 src = fetchPypi { 11 16 pname = "grappelli_safe"; 12 17 inherit version; 13 - sha256 = "ee34b3e2a3711498b1f8da3d9daa8a1239efdf255a212181742b6a5890fac039"; 18 + hash = "sha256-7jSz4qNxFJix+No9naqKEjnv3yVaISGBdCtqWJD6wDk="; 14 19 }; 15 20 21 + nativeBuildInputs = [ 22 + setuptools 23 + ]; 24 + 25 + # upstream has no tests 26 + doCheck = false; 27 + 28 + pythonImportsCheck = [ 29 + "grappelli_safe" 30 + ]; 31 + 16 32 meta = with lib; { 17 33 description = "A snapshot of django-grappelli for the Mezzanine CMS"; 18 34 longDescription = '' ··· 27 43 ''; 28 44 homepage = "https://github.com/stephenmcd/grappelli-safe"; 29 45 downloadPage = "http://pypi.python.org/pypi/grappelli_safe/"; 30 - license = licenses.free; 46 + changelog = "https://github.com/stephenmcd/grappelli-safe/releases/tag/v${version}"; 47 + license = licenses.bsd3; 31 48 maintainers = with maintainers; [ prikhi ]; 32 - platforms = platforms.unix; 33 49 }; 34 - 35 50 }