nixpkgs/pkgs/development/python-modules/django-ckeditor/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

63 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, django
, django-extensions
, django-js-asset
, fetchFromGitHub
, pillow
, python
, pythonOlder
, selenium
, setuptools-scm
}:
buildPythonPackage rec {
pname = "django-ckeditor";
version = "6.7";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "django-ckeditor";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-mZQ5s3YbumYmT0zRWPFIvzt2TbtDLvVcJjZVAwn31E8=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
django
django-js-asset
pillow
];
DJANGO_SETTINGS_MODULE = "ckeditor_demo.settings";
checkInputs = [
django-extensions
selenium
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m django test
runHook postCheck
'';
pythonImportsCheck = [
"ckeditor"
];
meta = with lib; {
description = " Django admin CKEditor integration";
homepage = "https://github.com/django-ckeditor/django-ckeditor";
changelog = "https://github.com/django-ckeditor/django-ckeditor/blob/${version}/CHANGELOG.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ onny ];
};
}