mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
pypaBuildHook.tests: modernize
This commit is contained in:
parent
e32457af0c
commit
6597b74fea
@ -10,9 +10,9 @@
|
||||
'';
|
||||
# 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
|
||||
@ -20,11 +20,13 @@
|
||||
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
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user