depot/third_party/nixpkgs/pkgs/development/python-modules/pyngo/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

56 lines
1,008 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, hatchling
# dependencies
, django
, pydantic
, typing-extensions
# tests
, django-stubs
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "pyngo";
version = "1.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "yezz123";
repo = "pyngo";
rev = "refs/tags/${version}";
hash = "sha256-cMWYmCbkhJmz+RMCh3NIhOkC5bX46nwz09WhTV+Mz6w=";
};
nativeBuildInputs = [
hatchling
];
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 ];
};
}