nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 peewee,
7 wtforms,
8 python,
9}:
10
11buildPythonPackage (finalAttrs: {
12 pname = "wtf-peewee";
13 version = "3.1.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "coleifer";
18 repo = "wtf-peewee";
19 tag = finalAttrs.version;
20 hash = "sha256-9gVvcPFVA3051Y0sn0mLq1ejKqcGlKZVbIaQ/uH5f4Y=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 peewee
27 wtforms
28 ];
29
30 checkPhase = ''
31 runHook preCheck
32 ${python.interpreter} runtests.py
33 runHook postCheck
34 '';
35
36 meta = {
37 description = "WTForms integration for peewee models";
38 homepage = "https://github.com/coleifer/wtf-peewee/";
39 license = lib.licenses.mit;
40 maintainers = [ ];
41 };
42})