1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7 sqlalchemy,
8 wtforms,
9}:
10
11buildPythonPackage rec {
12 pname = "wtforms-sqlalchemy";
13 version = "0.4.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "wtforms";
18 repo = "wtforms-sqlalchemy";
19 rev = version;
20 hash = "sha256-uR09LYfcyre+AC2TTEIhpjSI7y4Yo0GJ20smkzo5PRY=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 dependencies = [
28 sqlalchemy
29 wtforms
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "wtforms_sqlalchemy" ];
37
38 meta = {
39 description = "WTForms integration for SQLAlchemy";
40 homepage = "https://github.com/wtforms/wtforms-sqlalchemy";
41 changelog = "https://github.com/wtforms/wtforms-sqlalchemy/blob/${version}/CHANGES.rst";
42 license = lib.licenses.bsd3;
43 maintainers = with lib.maintainers; [ SuperSandro2000 ];
44 };
45}