1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools
5, peewee
6, wtforms
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "wtf-peewee";
12 version = "3.0.4";
13 format = "pyproject";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-cTbYRdvAUTY86MPR33BH+nA6H/epR8sgHDgOBQ/TUkQ=";
18 };
19
20 nativeBuildInputs = [
21 setuptools
22 ];
23
24 propagatedBuildInputs = [
25 peewee
26 wtforms
27 ];
28
29 checkPhase = ''
30 runHook preCheck
31 ${python.interpreter} runtests.py
32 runHook postCheck
33 '';
34
35 meta = with lib; {
36 description = "WTForms integration for peewee models";
37 homepage = "https://github.com/coleifer/wtf-peewee/";
38 license = licenses.mit;
39 maintainers = [ ];
40 };
41}