depot/third_party/nixpkgs/pkgs/development/python-modules/django-ninja/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03: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.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "vitalik";
repo = "django-ninja";
rev = "refs/tags/v${version}";
hash = "sha256-fPlw9iTt1V8VXd0d5hw1i9LT96BcDkAlpBu9SPPd+hI=";
};
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 ];
};
}