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