nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 56 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 fetchFromGitHub, 6 httpx, 7 jinja2, 8 nodeenv, 9 pydantic, 10 python-dotenv, 11 pythonOlder, 12 setuptools, 13 strenum, 14 tomlkit, 15 typing-extensions, 16}: 17 18buildPythonPackage rec { 19 pname = "prisma"; 20 version = "0.15.0"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "RobertCraigie"; 25 repo = "prisma-client-py"; 26 tag = "v${version}"; 27 hash = "sha256-F+Up1HHslralt3NvZZ/wT+CKvzKOjhEEuMEeT0L6NZM="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 click 34 httpx 35 jinja2 36 nodeenv 37 pydantic 38 python-dotenv 39 tomlkit 40 typing-extensions 41 ] 42 ++ lib.optionals (pythonOlder "3.11") [ strenum ]; 43 44 # Building the client requires network access 45 doCheck = false; 46 47 pythonImportsCheck = [ "prisma" ]; 48 49 meta = { 50 description = "Auto-generated and fully type-safe database client for prisma"; 51 homepage = "https://github.com/RobertCraigie/prisma-client-py"; 52 changelog = "https://github.com/RobertCraigie/prisma-client-py/releases/tag/v${version}"; 53 license = lib.licenses.asl20; 54 maintainers = with lib.maintainers; [ fab ]; 55 }; 56}