Skip to content

Commit 4da0028

Browse files
committed
wip(today's fortune): Contest void where prohibited by law.
1 parent 56b1272 commit 4da0028

File tree

6 files changed

+50
-25
lines changed

6 files changed

+50
-25
lines changed

devenv.lock

+16
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,28 @@
122122
"type": "github"
123123
}
124124
},
125+
"nixpkgs-unstable": {
126+
"locked": {
127+
"lastModified": 1742272065,
128+
"owner": "nixos",
129+
"repo": "nixpkgs",
130+
"rev": "3549532663732bfd89993204d40543e9edaec4f2",
131+
"type": "github"
132+
},
133+
"original": {
134+
"owner": "nixos",
135+
"ref": "nixpkgs-unstable",
136+
"repo": "nixpkgs",
137+
"type": "github"
138+
}
139+
},
125140
"root": {
126141
"inputs": {
127142
"devenv": "devenv",
128143
"git-hooks": "git-hooks",
129144
"nixpkgs": "nixpkgs",
130145
"nixpkgs-python": "nixpkgs-python",
146+
"nixpkgs-unstable": "nixpkgs-unstable",
131147
"pre-commit-hooks": [
132148
"git-hooks"
133149
]

devenv.nix

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
...
77
}:
88

9+
let
10+
pkgs-unstable = import inputs.nixpkgs-unstable { system = pkgs.stdenv.system; };
11+
in
912
{
1013
packages = [
1114
pkgs.git
1215
pkgs.bash
16+
pkgs.python312Packages.setuptools
1317
];
1418

1519
languages.python.enable = true;
1620
languages.python.uv.enable = true;
17-
languages.python.uv.package = pkgs.uv;
21+
languages.python.uv.package = pkgs-unstable.python312Packages.uv;
1822
languages.python.uv.sync.enable = true;
1923
languages.python.uv.sync.allExtras = true;
2024
languages.python.venv.enable = true;

devenv.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
inputs:
22
nixpkgs:
33
url: github:cachix/devenv-nixpkgs/rolling
4+
nixpkgs-unstable:
5+
url: github:nixos/nixpkgs/nixpkgs-unstable
46
nixpkgs-python:
57
url: github:cachix/nixpkgs-python
68
inputs:

notion_pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def column_name_projection(
2727

2828
data = source(
2929
limit=-1 if not DEV_MODE else 1,
30-
databases=[my_db],
30+
database_resources=[my_db],
3131
)
3232
info = pipeline.run(
3333
data,

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies = [
66
"dlt>=1.8.1",
77
"pydantic-api-sdk-notion>=0.0.34",
88
"pydantic>=2.10.6",
9+
"pydantic-api-models-notion",
910
]
1011
dynamic = ["authors", "classifiers", "version", "description"]
1112

@@ -27,3 +28,6 @@ include = '.*py$'
2728
[tool.autoflake]
2829
remove-all-unused-imports = true
2930
remove-unused-variables = true
31+
32+
[tool.uv.sources]
33+
pydantic-api-models-notion = { git = "https://github.com/stevieflyer/pydantic-api-models-notion.git", rev = "050999bc3817422a11edb79835dcd1b48314ab04" }

uv.lock

+22-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)