1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 flit-core,
7 django,
8 pytest-unmagic,
9}:
10
11buildPythonPackage rec {
12 pname = "django-cte";
13 version = "2.0.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "dimagi";
18 repo = "django-cte";
19 tag = "v${version}";
20 hash = "sha256-DPbvmxTh24gTGvqzBg1VVN1LHxhGc+r81RITCuyccfw=";
21 };
22
23 build-system = [
24 flit-core
25 ];
26
27 dependencies = [ django ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 pytest-unmagic
32 ];
33
34 pythonImportsCheck = [ "django_cte" ];
35
36 meta = {
37 description = "Common Table Expressions (CTE) for Django";
38 homepage = "https://github.com/dimagi/django-cte";
39 changelog = "https://github.com/dimagi/django-cte/blob/v${version}/CHANGELOG.md";
40 license = lib.licenses.bsd3;
41 maintainers = with lib.maintainers; [ jopejoe1 ];
42 };
43}