17 buildPythonPackage rec {
18 pname = "django-auditlog";
22 src = fetchFromGitHub {
24 repo = "django-auditlog";
26 hash = "sha256-SJ4GJp/gVIxiLbdAj3ZS+weevqIDZCMQnW/pqc5liJU=";
34 propagatedBuildInputs = [
46 doCheck = stdenv.hostPlatform.isLinux; # postgres fails to allocate shm on darwin
48 postgresqlTestUserOptions = "LOGIN SUPERUSER";
53 # strip escape codes otherwise tests fail
54 # see https://github.com/jazzband/django-auditlog/issues/644
55 TEST_DB_USER=$PGUSER \
56 TEST_DB_HOST=$PGHOST \
57 ${python.interpreter} runtests.py | cat
62 pythonImportsCheck = [ "auditlog" ];
65 changelog = "https://github.com/jazzband/django-auditlog/blob/v${version}/CHANGELOG.md";
66 description = "Django app that keeps a log of changes made to an object";
67 downloadPage = "https://github.com/jazzband/django-auditlog";
68 license = licenses.mit;
69 maintainers = with maintainers; [ leona ];