depot/third_party/nixpkgs/pkgs/development/python-modules/django-logentry-admin/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

29 lines
725 B
Nix

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