2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
jinja2,
|
|
|
|
nodeenv,
|
|
|
|
pydantic,
|
|
|
|
python-dotenv,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
strenum,
|
|
|
|
tomlkit,
|
|
|
|
typing-extensions,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prisma";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.13.1";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RobertCraigie";
|
|
|
|
repo = "prisma-client-py";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-7pibexiFsyrwC6rVv0CGHRbQU4G3rOXVhQW/7c/vKJA=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-02-29 20:09:43 +00:00
|
|
|
click
|
|
|
|
httpx
|
|
|
|
jinja2
|
|
|
|
nodeenv
|
|
|
|
pydantic
|
|
|
|
python-dotenv
|
|
|
|
tomlkit
|
|
|
|
typing-extensions
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ strenum ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
# Building the client requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "prisma" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Auto-generated and fully type-safe database client for prisma";
|
|
|
|
homepage = "https://github.com/RobertCraigie/prisma-client-py";
|
|
|
|
changelog = "https://github.com/RobertCraigie/prisma-client-py/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|