1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, peewee 6, wtforms 7, python 8}: 9 10buildPythonPackage rec { 11 pname = "wtf-peewee"; 12 version = "3.0.3"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "faa953fe3f705d4f2b48f3c1a81c5c5a6a38f9ed1378c9a830e6efc1b0fccb15"; 17 }; 18 19 patches = [ 20 (fetchpatch { 21 name = "fix-wtforms3.patch"; 22 url = "https://github.com/coleifer/wtf-peewee/commit/b1764f4474c73a9a2b34ae6b7db61274f5252a7f.patch"; 23 sha256 = "0maz3fm9bi8p80nk9sdb34xq55xq8ihm51y7k0m8ck9aaypvwbig"; 24 }) 25 ]; 26 27 propagatedBuildInputs = [ 28 peewee 29 wtforms 30 ]; 31 32 checkPhase = '' 33 ${python.interpreter} runtests.py 34 ''; 35 36 meta = with lib; { 37 description = "WTForms integration for peewee models"; 38 homepage = "https://github.com/coleifer/wtf-peewee/"; 39 license = licenses.mit; 40 maintainers = [ maintainers.costrouc ]; 41 }; 42}