Files

40 lines
791 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}";
hash = "sha256-+BWnvDhhHPLuOa7TiPkYiNBmPN0uNvdFmRNxHffrza4=";
};
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 ];
};
}