summaryrefslogtreecommitdiff
path: root/nix/derivation.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-28 05:18:34 -0400
committerseth <[email protected]>2023-09-28 05:19:13 -0400
commit9c0e78b1b9a363dc2221a4d1861e33ced38744fe (patch)
treeb31789867114257a0a1ffebc1e1c4908e70f2e9f /nix/derivation.nix
parentb9518dfafe5c7c8cc2499df4bbb163b0e3afbc06 (diff)
fix(flake): use pyproject format in buildPythonPackage
see https://github.com/NixOS/nixpkgs/pull/254309
Diffstat (limited to 'nix/derivation.nix')
-rw-r--r--nix/derivation.nix15
1 files changed, 2 insertions, 13 deletions
diff --git a/nix/derivation.nix b/nix/derivation.nix
index 483aeef..8ca5b89 100644
--- a/nix/derivation.nix
+++ b/nix/derivation.nix
@@ -6,26 +6,15 @@
pydantic,
uvicorn,
self,
- build,
- wheel,
}:
buildPythonPackage {
pname = "guzzle-api";
version = builtins.substring 0 8 self.lastModifiedDate or "dirty";
src = lib.cleanSource self;
- format = "flit";
+ format = "pyproject";
doCheck = false;
- dontUsePypaBuild = true;
-
- # TODO: find out what's going on with pypaBuildHook
- buildPhase = ''
- runHook preBuild
- pyproject-build --no-isolation --outdir dist/ --wheel $pypaBuildFlags
- runHook postBuild
- '';
-
propagatedBuildInputs = [fastapi pydantic uvicorn];
- nativeBuildInputs = [flit-core build wheel];
+ nativeBuildInputs = [flit-core];
}