saunafs: 4.6.0 -> 4.7.0 (#379649)
[NixPkgs.git] / pkgs / development / python-modules / django-ninja / default.nix
blob8fbecf4559ac0dd8344a8caa8a5655c45cf1d31b
2   lib,
3   buildPythonPackage,
4   django,
5   fetchFromGitHub,
6   flit-core,
7   psycopg2,
8   pydantic,
9   pytest-asyncio,
10   pytest-django,
11   pytestCheckHook,
12   pythonOlder,
15 buildPythonPackage rec {
16   pname = "django-ninja";
17   version = "1.3.0-unstable-2024-11-13";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "vitalik";
24     repo = "django-ninja";
25     rev = "ee0f27b169fb227e8786bbf9011659f46b2795ea";
26     hash = "sha256-8qjGEo2n0O4WrKqhaBZNSDAW4fTOBg/nX7T4eOoJ+Pw=";
27   };
29   propagatedBuildInputs = [
30     django
31     pydantic
32   ];
34   nativeBuildInputs = [ flit-core ];
36   nativeCheckInputs = [
37     psycopg2
38     pytest-asyncio
39     pytest-django
40     pytestCheckHook
41   ];
43   meta = with lib; {
44     changelog = "https://github.com/vitalik/django-ninja/releases/tag/v${version}";
45     description = "Web framework for building APIs with Django and Python type hints";
46     homepage = "https://django-ninja.dev";
47     license = licenses.mit;
48     maintainers = with maintainers; [ elohmeier ];
49   };