1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 01:46:30 +00:00
nixpkgs/pkgs/development/python-modules/django-logentry-admin/default.nix
2019-07-11 00:27:14 +02:00

30 lines
735 B
Nix

{ stdenv, fetchFromGitHub, buildPythonPackage, django, pytest, pytest-django }:
buildPythonPackage rec {
pname = "django-logentry-admin";
version = "1.0.4";
src = fetchFromGitHub {
owner = "yprez";
repo = pname;
rev = "v${version}";
sha256 = "1ji04qklzhjb7fx6644vzikjb2196rxyi8hrwf2knsz41ndvq1l9";
};
checkInputs = [ pytest pytest-django ];
checkPhase = ''
rm -r logentry_admin __init__.py
pytest
'';
propagatedBuildInputs = [ django ];
meta = with stdenv.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 ];
};
}