nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 black, 5 jinja2, 6 dirty-equals, 7 fastapi, 8 fetchFromGitHub, 9 pdm-backend, 10 pydantic, 11 pytestCheckHook, 12 sqlalchemy, 13}: 14 15buildPythonPackage rec { 16 pname = "sqlmodel"; 17 version = "0.0.31"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "tiangolo"; 22 repo = "sqlmodel"; 23 tag = version; 24 hash = "sha256-HJ8we0gYySagUvs7NEKcwe9l7KEcqmJ8+CTW/rjBdME="; 25 }; 26 27 build-system = [ pdm-backend ]; 28 29 dependencies = [ 30 pydantic 31 sqlalchemy 32 ]; 33 34 nativeCheckInputs = [ 35 black 36 jinja2 37 dirty-equals 38 fastapi 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "sqlmodel" ]; 43 44 disabledTestPaths = [ 45 # Coverage 46 "docs_src/tutorial/" 47 "tests/test_tutorial/" 48 ]; 49 50 meta = { 51 description = "Module to work with SQL databases"; 52 homepage = "https://github.com/fastapi/sqlmodel"; 53 changelog = "https://github.com/fastapi/sqlmodel/releases/tag/${src.tag}"; 54 license = lib.licenses.mit; 55 maintainers = with lib.maintainers; [ fab ]; 56 }; 57}