depot/third_party/nixpkgs/pkgs/development/python-modules/django-ninja/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

50 lines
996 B
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
flit-core,
psycopg2,
pydantic,
pytest-asyncio,
pytest-django,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "django-ninja";
version = "1.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "vitalik";
repo = "django-ninja";
rev = "refs/tags/v${version}";
hash = "sha256-43yLhiDpksTPNh9Q8T8rSBzaZ99XCXIrNkTSdWk0gLc=";
};
propagatedBuildInputs = [
django
pydantic
];
nativeBuildInputs = [ flit-core ];
nativeCheckInputs = [
psycopg2
pytest-asyncio
pytest-django
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/vitalik/django-ninja/releases/tag/v${version}";
description = "Web framework for building APIs with Django and Python type hints";
homepage = "https://django-ninja.dev";
license = licenses.mit;
maintainers = with maintainers; [ elohmeier ];
};
}