1{ lib, buildPythonPackage, fetchPypi, django, python }:
2
3buildPythonPackage rec {
4 pname = "django-formtools";
5 version = "2.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1chkbl188yj6hvhh1wgjpfgql553k6hrfwxzb8vv4lfdq41jq9y5";
10 };
11
12 propagatedBuildInputs = [ django ];
13 checkPhase = ''
14 ${python.interpreter} -m django test --settings=tests.settings
15 '';
16
17 meta = with lib; {
18 description = "A set of high-level abstractions for Django forms";
19 homepage = "https://github.com/jazzband/django-formtools";
20 license = licenses.bsd3;
21 maintainers = with maintainers; [ greizgh schmittlauch ];
22 };
23}