Skip to content

Commit

Permalink
fix poetry overrides for template
Browse files Browse the repository at this point in the history
  • Loading branch information
anpin committed Nov 27, 2024
1 parent 6815d1b commit 68f1beb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ pkgs: let
pbs-installer = ["pdm-backend"];
unearth = ["pdm-backend"];
hishel = ["hatch-fancy-pypi-readme"];
jinja2 = ["flit-core"];
pyzmq = ["scikit-build-core"];
urllib3 = ["hatchling" "hatch-vcs"];
};
postOverlay = final: prev:
(builtins.mapAttrs (
Expand Down Expand Up @@ -47,5 +50,19 @@ pkgs: let
hash = "sha256-VOmMNEdKHrPKJzs+D735Y52y47MubPwLlfkvB7Glh14=";
};
});
rfc3986-validator = prev.rfc3986-validator.overridePythonAttrs (old: {
nativeBuildInputs = (old.buildInputs or []) ++ [prev.setuptools prev.wheel pkgs.patchutils];
patchPhase = ''
# Patch setup.py to remove pytest-runner
substituteInPlace setup.py \
--replace-fail "setup_requirements = ['pytest-runner', ]" "setup_requirements = []" \
'';
buildPhase = ''
python setup.py sdist bdist_wheel
'';
});
tinycss2 = prev.tinycss2.overridePythonAttrs (old: {
buildInputs = [];
});
};
in [preOverlay pkgs.poetry2nix.defaultPoetryOverrides postOverlay]

0 comments on commit 68f1beb

Please sign in to comment.