python312Packages.django-colorful: refactor (#359519)

This commit is contained in:
Fabian Affolter 2024-11-28 08:37:54 +01:00 committed by GitHub
commit b9d1c3ee13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,27 +3,32 @@
buildPythonPackage,
fetchPypi,
django,
setuptools,
}:
buildPythonPackage rec {
pname = "django-colorful";
version = "1.3";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "fd246f2fb297ed074dc4349966d33a1c82d0308b7fb0d6ef6e2e76b90cefffb7";
hash = "sha256-/SRvL7KX7QdNxDSZZtM6HILQMIt/sNbvbi52uQzv/7c=";
};
build-system = [ setuptools ];
buildInputs = [ django ];
# Tests aren't run
doCheck = false;
# Requires Django >= 1.8
buildInputs = [ django ];
pythonImportsCheck = [ "colorful" ];
meta = with lib; {
description = "Django extension that provides database and form color fields";
homepage = "https://github.com/charettes/django-colorful";
license = licenses.mit;
maintainers = [ ];
};
}