Files
nixpkgs/pkgs/development/python-modules/django-logentry-admin/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
794 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
django,
pytest,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-logentry-admin";
version = "1.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "yprez";
repo = "django-logentry-admin";
rev = "v${version}";
sha256 = "1bndxgvisw8kk52zfdifvly6dl4833wqilxf77pg473172yaf5gq";
};
nativeCheckInputs = [
pytest
pytest-django
];
checkPhase = ''
rm -r logentry_admin __init__.py
pytest
'';
propagatedBuildInputs = [ django ];
meta = {
description = "Show all LogEntry objects in the Django admin site";
homepage = "https://github.com/yprez/django-logentry-admin";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ mrmebelman ];
};
}