nixos-seafile-overlay/django-post_office/default.nix

24 lines
739 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub,
django, jsonfield, tox}:
buildPythonPackage rec {
pname = "django-post_office";
version = "3.2.1";
src = fetchFromGitHub {
owner = "ui";
repo = pname;
rev = "v${version}";
sha256 = "sha256:12ccqa3168n0s8mqgywbg87qk72yh9salqxafcq4nc4lc3mcsmyj";
};
propagatedBuildInputs = [ django jsonfield ];
checkInputs = [ tox django jsonfield ];
checkPhase = ''
django-admin.py test post_office --settings=post_office.test_settings --pythonpath=.
'';
meta = {
description = "A Django app to monitor and send mail asynchronously, complete with template support.";
maintainers = with lib.maintainers; [ schmittlauch ];
license = lib.licenses.mit;
};
}