depot/third_party/nixpkgs/pkgs/development/python-modules/django-filer/default.nix

60 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pythonOlder,
pytestCheckHook,
django-polymorphic,
setuptools,
python,
easy-thumbnails,
pillow-heif,
django-app-helper,
distutils,
}:
buildPythonPackage rec {
pname = "django-filer";
version = "3.3.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "django-cms";
repo = "django-filer";
tag = version;
hash = "sha256-9Gy6yXYRCARXAqJ9+ZoDbNAEQGzhLLtJzbAevF+j/2Q=";
};
build-system = [ setuptools ];
dependencies = [
django
django-polymorphic
easy-thumbnails
];
optional-dependencies = {
heif = [ pillow-heif ];
};
checkInputs = [
distutils
django-app-helper
];
checkPhase = ''
runHook preCheck
${python.interpreter} tests/settings.py
runHook postCheck
'';
meta = {
description = "File management application for Django";
homepage = "https://github.com/django-cms/django-filer";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.onny ];
};
}