1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 django,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "django-context-decorator";
12 version = "1.6.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "rixx";
17 repo = "django-context-decorator";
18 rev = "v${version}";
19 hash = "sha256-lNmZDsguOu2+gtMVjbwr709sbLCQOQ1sAePN7UJQbcw=";
20 };
21
22 build-system = [ flit-core ];
23
24 pythonImportsCheck = [ "django_context_decorator" ];
25
26 nativeCheckInputs = [
27 django
28 pytestCheckHook
29 ];
30
31 meta = with lib; {
32 description = "Django @context decorator";
33 homepage = "https://github.com/rixx/django-context-decorator";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ hexa ];
36 };
37}