1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, parameterized
5, unittestCheckHook
6}:
7buildPythonPackage rec {
8 pname = "pypika";
9 version = "0.48.9";
10 format = "setuptools";
11
12 src = fetchFromGitHub {
13 owner = "kayak";
14 repo = "pypika";
15 rev = "v${version}";
16 hash = "sha256-9HKT1xRu23F5ptiKhIgIR8srLIcpDzpowBNuYOhqMU0=";
17 };
18
19 pythonImportsCheck = ["pypika"];
20
21 nativeCheckInputs = [
22 parameterized
23 unittestCheckHook
24 ];
25
26 meta = with lib; {
27 description = "A python SQL query builder";
28 homepage = "https://github.com/kayak/pypika";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ blaggacao ];
31 };
32}
33