fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
pythonRelaxDepsHook,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
django,
|
|
pydantic,
|
|
typing-extensions,
|
|
|
|
# tests
|
|
django-stubs,
|
|
pytestCheckHook,
|
|
pytest-asyncio,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyngo";
|
|
version = "2.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yezz123";
|
|
repo = "pyngo";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-wvy1L21AnQ4JP5seAh6DWksQU2OcbYTXKcixpFryH4w=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"pydantic"
|
|
"typing-extensions"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
pydantic
|
|
typing-extensions
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyngo" ];
|
|
|
|
nativeCheckInputs = [
|
|
django-stubs
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/yezz123/pyngo/releases/tag/${version}";
|
|
description = "Pydantic model support for Django & Django-Rest-Framework";
|
|
homepage = "https://github.com/yezz123/pyngo";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|