Skip to content

Commit

Permalink
pypaBuildHook.tests: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
ShamrockLee committed Oct 31, 2024
1 parent 7305c9c commit 14639c3
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,23 @@
'';
# the source of the example project
projectSource = runCommand "my-project-source" {} ''
mkdir -p $out/src
mkdir -p $out/src/my_project
cp ${pyprojectToml} $out/pyproject.toml
touch $out/src/__init__.py
touch $out/src/my_project/__init__.py
'';
in
# this build must never triger conflicts
pythonOnBuildForHost.pkgs.buildPythonPackage {
pname = "dont-propagate-conflicting-deps";
version = "0.0.0";
src = projectSource;
format = "pyproject";
propagatedBuildInputs = [
pyproject = true;
dependencies = [
# At least one dependency of `build` should be included here to
# keep the test meaningful
(mkConflict pythonOnBuildForHost.pkgs.tomli)
];
build-system = [
# setuptools is also needed to build the example project
pythonOnBuildForHost.pkgs.setuptools
];
Expand Down

0 comments on commit 14639c3

Please sign in to comment.