add setuptools to build fasthtml from source
This commit is contained in:
parent
fad0f6e5dd
commit
9f2e496f4f
14
flake.nix
14
flake.nix
@ -18,6 +18,15 @@
|
||||
forAllSystems = inputs.nixpkgs.lib.genAttrs supportedSystems;
|
||||
pkgs = forAllSystems (system: inputs.nixpkgs.legacyPackages.${system});
|
||||
poetry2nix = forAllSystems (system: inputs.poetry2nix-lib.lib.mkPoetry2Nix {pkgs = pkgs.${system};});
|
||||
|
||||
addSetuptools = self: super: list:
|
||||
builtins.listToAttrs (builtins.map (package: {
|
||||
name = "${package}";
|
||||
value = super."${package}".overridePythonAttrs (old: {
|
||||
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [self.setuptools];
|
||||
});
|
||||
})
|
||||
list);
|
||||
in {
|
||||
# `nix build`
|
||||
packages = forAllSystems (system: let
|
||||
@ -29,8 +38,11 @@
|
||||
then "pyright && pytest"
|
||||
else "";
|
||||
# doCheck = debug;
|
||||
preferWheels = true;
|
||||
preferWheels = false;
|
||||
nativeBuildInputs = with pkgs.${system}; [pyright];
|
||||
overrides =
|
||||
poetry2nix.${system}.overrides.withDefaults (self: super:
|
||||
addSetuptools self super ["sqlite-minutils" "fastlite" "python-fasthtml"]);
|
||||
};
|
||||
in {
|
||||
default = mkPackage {debug = false;};
|
||||
|
Loading…
Reference in New Issue
Block a user