Merge pull request #206742 from symphorien/nativeCheckInputs

nativeCheckInputs
This commit is contained in:
Guillaume Girol 2023-01-21 16:12:21 +00:00 committed by GitHub
commit 4e9efbd52a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4194 changed files with 4323 additions and 4277 deletions

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation {
# ...
checkInputs = [
nativeCheckInputs = [
postgresql
postgresqlTestHook
];

View file

@ -436,7 +436,7 @@ arguments `buildInputs` and `propagatedBuildInputs` to specify dependencies. If
something is exclusively a build-time dependency, then the dependency should be
included in `buildInputs`, but if it is (also) a runtime dependency, then it
should be added to `propagatedBuildInputs`. Test dependencies are considered
build-time dependencies and passed to `checkInputs`.
build-time dependencies and passed to `nativeCheckInputs`.
The following example shows which arguments are given to `buildPythonPackage` in
order to build [`datashape`](https://github.com/blaze/datashape).
@ -453,7 +453,7 @@ buildPythonPackage rec {
hash = "sha256-FLLvdm1MllKrgTGC6Gb0k0deZeVYvtCCLji/B7uhong=";
};
checkInputs = [ pytest ];
nativeCheckInputs = [ pytest ];
propagatedBuildInputs = [ numpy multipledispatch python-dateutil ];
meta = with lib; {
@ -466,7 +466,7 @@ buildPythonPackage rec {
```
We can see several runtime dependencies, `numpy`, `multipledispatch`, and
`python-dateutil`. Furthermore, we have one `checkInputs`, i.e. `pytest`. `pytest` is a
`python-dateutil`. Furthermore, we have one `nativeCheckInputs`, i.e. `pytest`. `pytest` is a
test runner and is only used during the `checkPhase` and is therefore not added
to `propagatedBuildInputs`.
@ -569,7 +569,7 @@ Pytest is the most common test runner for python repositories. A trivial
test run would be:
```
checkInputs = [ pytest ];
nativeCheckInputs = [ pytest ];
checkPhase = ''
runHook preCheck
@ -585,7 +585,7 @@ sandbox, and will generally need many tests to be disabled.
To filter tests using pytest, one can do the following:
```
checkInputs = [ pytest ];
nativeCheckInputs = [ pytest ];
# avoid tests which need additional data or touch network
checkPhase = ''
runHook preCheck
@ -618,7 +618,7 @@ when a package may need many items disabled to run the test suite.
Using the example above, the analogous `pytestCheckHook` usage would be:
```
checkInputs = [ pytestCheckHook ];
nativeCheckInputs = [ pytestCheckHook ];
# requires additional data
pytestFlagsArray = [ "tests/" "--ignore=tests/integration" ];
@ -749,7 +749,7 @@ with the exception of `other` (see `format` in
`unittestCheckHook` is a hook which will substitute the setuptools `test` command for a `checkPhase` which runs `python -m unittest discover`:
```
checkInputs = [ unittestCheckHook ];
nativeCheckInputs = [ unittestCheckHook ];
unittestFlags = [ "-s" "tests" "-v" ];
```
@ -1006,7 +1006,7 @@ buildPythonPackage rec {
rm testing/test_argcomplete.py
'';
checkInputs = [ hypothesis ];
nativeCheckInputs = [ hypothesis ];
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ attrs py setuptools six pluggy ];
@ -1028,7 +1028,7 @@ The `buildPythonPackage` mainly does four things:
* In the `installCheck` phase, `${python.interpreter} setup.py test` is run.
By default tests are run because `doCheck = true`. Test dependencies, like
e.g. the test runner, should be added to `checkInputs`.
e.g. the test runner, should be added to `nativeCheckInputs`.
By default `meta.platforms` is set to the same value
as the interpreter unless overridden otherwise.
@ -1082,7 +1082,7 @@ because their behaviour is different:
* `buildInputs ? []`: Build and/or run-time dependencies that need to be
compiled for the host machine. Typically non-Python libraries which are being
linked.
* `checkInputs ? []`: Dependencies needed for running the `checkPhase`. These
* `nativeCheckInputs ? []`: Dependencies needed for running the `checkPhase`. These
are added to `nativeBuildInputs` when `doCheck = true`. Items listed in
`tests_require` go here.
* `propagatedBuildInputs ? []`: Aside from propagating dependencies,
@ -1416,7 +1416,7 @@ example of such a situation is when `py.test` is used.
buildPythonPackage {
# ...
# assumes the tests are located in tests
checkInputs = [ pytest ];
nativeCheckInputs = [ pytest ];
checkPhase = ''
runHook preCheck
@ -1768,7 +1768,7 @@ In a `setup.py` or `setup.cfg` it is common to declare dependencies:
* `setup_requires` corresponds to `nativeBuildInputs`
* `install_requires` corresponds to `propagatedBuildInputs`
* `tests_require` corresponds to `checkInputs`
* `tests_require` corresponds to `nativeCheckInputs`
## Contributing {#contributing}

View file

@ -654,7 +654,11 @@ A list of strings passed as additional flags to `make`. Like `makeFlags` and `ma
##### `checkInputs` {#var-stdenv-checkInputs}
A list of dependencies used by the phase. This gets included in `nativeBuildInputs` when `doCheck` is set.
A list of host dependencies used by the phase, usually libraries linked into executables built during tests. This gets included in `buildInputs` when `doCheck` is set.
##### `nativeCheckInputs` {#var-stdenv-nativeCheckInputs}
A list of native dependencies used by the phase, notably tools needed on `$PATH`. This gets included in `nativeBuildInputs` when `doCheck` is set.
##### `preCheck` {#var-stdenv-preCheck}
@ -821,7 +825,11 @@ A list of strings passed as additional flags to `make`. Like `makeFlags` and `ma
##### `installCheckInputs` {#var-stdenv-installCheckInputs}
A list of dependencies used by the phase. This gets included in `nativeBuildInputs` when `doInstallCheck` is set.
A list of host dependencies used by the phase, usually libraries linked into executables built during tests. This gets included in `buildInputs` when `doInstallCheck` is set.
##### `nativeInstallCheckInputs` {#var-stdenv-nativeInstallCheckInputs}
A list of native dependencies used by the phase, notably tools needed on `$PATH`. This gets included in `nativeBuildInputs` when `doInstallCheck` is set.
##### `preInstallCheck` {#var-stdenv-preInstallCheck}

View file

@ -146,6 +146,30 @@
instead.
</para>
</listitem>
<listitem>
<para>
<literal>checkInputs</literal> have been renamed to
<literal>nativeCheckInputs</literal>, because they behave the
same as <literal>nativeBuildInputs</literal> when
<literal>doCheck</literal> is set.
<literal>checkInputs</literal> now denote a new type of
dependencies, added to <literal>buildInputs</literal> when
<literal>doCheck</literal> is set. As a rule of thumb,
<literal>nativeCheckInputs</literal> are tools on
<literal>$PATH</literal> used during the tests, and
<literal>checkInputs</literal> are libraries which are linked
to executables built as part of the tests. Similarly,
<literal>installCheckInputs</literal> are renamed to
<literal>nativeInstallCheckInputs</literal>, corresponding to
<literal>nativeBuildInputs</literal>, and
<literal>installCheckInputs</literal> are a new type of
dependencies added to <literal>buildInputs</literal> when
<literal>doInstallCheck</literal> is set. (Note that this
change will not cause breakage to derivations with
<literal>strictDeps</literal> unset, which are most packages
except python, rust and go packages).
</para>
</listitem>
<listitem>
<para>
<literal>borgbackup</literal> module now has an option for

View file

@ -48,6 +48,8 @@ In addition to numerous new and upgraded packages, this release has the followin
- `carnix` and `cratesIO` has been removed due to being unmaintained, use alternatives such as [naersk](https://github.com/nix-community/naersk) and [crate2nix](https://github.com/kolloch/crate2nix) instead.
- `checkInputs` have been renamed to `nativeCheckInputs`, because they behave the same as `nativeBuildInputs` when `doCheck` is set. `checkInputs` now denote a new type of dependencies, added to `buildInputs` when `doCheck` is set. As a rule of thumb, `nativeCheckInputs` are tools on `$PATH` used during the tests, and `checkInputs` are libraries which are linked to executables built as part of the tests. Similarly, `installCheckInputs` are renamed to `nativeInstallCheckInputs`, corresponding to `nativeBuildInputs`, and `installCheckInputs` are a new type of dependencies added to `buildInputs` when `doInstallCheck` is set. (Note that this change will not cause breakage to derivations with `strictDeps` unset, which are most packages except python, rust and go packages).
- `borgbackup` module now has an option for inhibiting system sleep while backups are running, defaulting to off (not inhibiting sleep), available as [`services.borgbackup.jobs.<name>.inhibitsSleep`](#opt-services.borgbackup.jobs._name_.inhibitsSleep).
- `podman` now uses the `netavark` network stack. Users will need to delete all of their local containers, images, volumes, etc, by running `podman system reset --force` once before upgrading their systems.

View file

@ -31,7 +31,7 @@ python3Packages.buildPythonApplication rec {
++ extraPythonPackages python3Packages;
doCheck = true;
checkInputs = with python3Packages; [ mypy pylint black ];
nativeCheckInputs = with python3Packages; [ mypy pylint black ];
checkPhase = ''
mypy --disallow-untyped-defs \
--no-implicit-optional \

View file

@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
++ lib.optional podcastSupport python3.pkgs.feedparser
++ lib.optional wikipediaSupport webkitgtk;
checkInputs = with python3.pkgs; [
nativeCheckInputs = with python3.pkgs; [
pytest
];

View file

@ -41,7 +41,7 @@ python3Packages.buildPythonApplication rec {
gnome.adwaita-icon-theme
];
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
minimock
pytest
pytest-httpserver

View file

@ -13,7 +13,7 @@ in stdenv.mkDerivation {
sha256 = "05c6zskj50g29f51lx8fvgzsi3f31z01zj6ssjjrgr7jfs7ak70p";
};
checkInputs = (with dotnetPackages; [ NUnitConsole ]);
nativeCheckInputs = (with dotnetPackages; [ NUnitConsole ]);
nativeBuildInputs = [ mono makeWrapper ];
buildPhase = ''

View file

@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
Cocoa
];
checkInputs = [
nativeCheckInputs = [
cppunit
];

View file

@ -28,7 +28,7 @@ python3Packages.buildPythonApplication rec {
python3Packages.uritools
];
checkInputs = [
nativeCheckInputs = [
python3Packages.pytestCheckHook
];

View file

@ -16,7 +16,7 @@ python3Packages.buildPythonApplication rec {
python3Packages.uritools
];
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
pytestCheckHook
];

View file

@ -13,7 +13,7 @@ pythonPackages.buildPythonApplication rec {
propagatedBuildInputs = [ mopidy pythonPackages.py-sonic ];
checkInputs = with pythonPackages; [ pytestCheckHook ];
nativeCheckInputs = with pythonPackages; [ pytestCheckHook ];
meta = with lib; {
homepage = "https://www.mopidy.com/";

View file

@ -17,7 +17,7 @@ python3Packages.buildPythonApplication rec {
python3Packages.tidalapi
];
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
pytestCheckHook
pytest-mock
];

View file

@ -27,7 +27,7 @@ python3.pkgs.buildPythonApplication rec {
mopidy
];
checkInputs = with python3.pkgs; [
nativeCheckInputs = with python3.pkgs; [
vcrpy
pytestCheckHook
];

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
doCheck = true;
checkInputs = [ ffmpeg glibcLocales perl ] ++ (with perlPackages; [ ListMoreUtils ]);
nativeCheckInputs = [ ffmpeg glibcLocales perl ] ++ (with perlPackages; [ ListMoreUtils ]);
checkPhase = ''
export LANG="en_US.UTF-8"

View file

@ -119,7 +119,7 @@ python3.pkgs.buildPythonApplication rec {
LC_ALL = "en_US.UTF-8";
checkInputs = [
nativeCheckInputs = [
dbus
gdk-pixbuf
glibcLocales

View file

@ -26,7 +26,7 @@ python3Packages.buildPythonApplication rec {
];
propagatedBuildInputs = with python3Packages; [ crcmod ffmpeg-python mutagen tqdm ];
checkInputs = with python3Packages; [ requests sox ];
nativeCheckInputs = with python3Packages; [ requests sox ];
# Testing downloads media files for testing, which requires the
# sandbox to be disabled.

View file

@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
"-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
];
checkInputs = [ gtest ];
nativeCheckInputs = [ gtest ];
doCheck = !stdenv.isAarch64; # single failure that I can't explain
preFixup = ''

View file

@ -87,7 +87,7 @@ stdenv.mkDerivation rec {
libnotify
] ++ gst_plugins;
checkInputs = [
nativeCheckInputs = [
check
];

View file

@ -92,7 +92,7 @@ stdenv.mkDerivation rec {
fmt
];
checkInputs = [
nativeCheckInputs = [
parallel
ruby
supercollider-with-sc3-plugins

View file

@ -37,7 +37,7 @@ python3Packages.buildPythonApplication rec {
python3Packages.pygobject3
];
checkInputs = [
nativeCheckInputs = [
xvfb-run
];

View file

@ -73,7 +73,7 @@ python3Packages.buildPythonApplication rec {
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
pytest
];

View file

@ -56,7 +56,7 @@ in python3.pkgs.buildPythonApplication rec {
buildInputs = [ libsndfile ];
checkInputs = with python3.pkgs; [
nativeCheckInputs = with python3.pkgs; [
twisted
] ++ bins;

View file

@ -95,7 +95,7 @@ in stdenv.mkDerivation rec {
++ lib.optional (guiModule == "fltk") "-DFLTK_SKIP_OPENGL=ON";
doCheck = true;
checkInputs = [ cxxtest ruby ];
nativeCheckInputs = [ cxxtest ruby ];
# TODO: Update cmake hook to make it simpler to selectively disable cmake tests: #113829
checkPhase = let

View file

@ -40,7 +40,7 @@ python3.pkgs.buildPythonApplication rec {
pyunifiprotect
];
checkInputs = with python3.pkgs; [
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];

View file

@ -52,7 +52,7 @@ python3Packages.buildPythonApplication rec {
)
'';
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
pytest-qt
pytest-mock
pytestCheckHook

View file

@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
];
checkInputs = [ python3 ];
nativeCheckInputs = [ python3 ];
doCheck = true;

View file

@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
];
checkInputs = [ python3 ];
nativeCheckInputs = [ python3 ];
doCheck = true;

View file

@ -40,7 +40,7 @@ python3Packages.buildPythonApplication rec {
pytimeparse
];
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
pytestCheckHook
pytest-asyncio
];

View file

@ -64,7 +64,7 @@ let chia = python3Packages.buildPythonApplication rec {
zstd
];
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
pytestCheckHook
];

View file

@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
# https://github.com/NixOS/nixpkgs/issues/179474
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "fortify" "stackprotector" ];
checkInputs = [ python3 ];
nativeCheckInputs = [ python3 ];
doCheck = true;

View file

@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
];
checkInputs = [ python3 ];
nativeCheckInputs = [ python3 ];
checkFlags = [ "LC_ALL=en_US.UTF-8" ]
# QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Groestlcoin's GUI.

View file

@ -87,7 +87,7 @@ rustPlatform.buildRustPackage rec {
"--skip subnet_service::tests::sync_committee_service::subscribe_and_unsubscribe"
];
checkInputs = [
nativeCheckInputs = [
nodePackages.ganache
];

View file

@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec {
doCheck = false;
# all the following are needed for the checkphase
# checkInputs = lib.optionals stdenv.isDarwin [ pkg-config rustfmt ];
# nativeCheckInputs = lib.optionals stdenv.isDarwin [ pkg-config rustfmt ];
# Needed to get openssl-sys to use pkg-config.
# OPENSSL_NO_VENDOR = 1;
# OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";

View file

@ -104,7 +104,7 @@ stdenv.mkDerivation rec {
webkitgtk_5_0
];
checkInputs = [
nativeCheckInputs = [
dbus
xvfb-run
];

View file

@ -96,7 +96,7 @@ in
];
# extra programs test via `make functionaltest`
checkInputs = [
nativeCheckInputs = [
fish
nodejs
pyEnv # for src/clint.py

View file

@ -30,7 +30,7 @@ with python3.pkgs; buildPythonApplication rec {
setuptools
];
checkInputs = [
nativeCheckInputs = [
neovim
pytestCheckHook
];

View file

@ -73,7 +73,7 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true;
doCheck = !isCross;
checkInputs = lib.optionals (!isCross) [ dejagnu ];
nativeCheckInputs = lib.optionals (!isCross) [ dejagnu ];
postInstall = ''
moveToOutput share/emacs "$out"

View file

@ -27,7 +27,7 @@ rustPlatform.buildRustPackage rec {
zstd
];
checkInputs = [ zoxide ];
nativeCheckInputs = [ zoxide ];
buildFeatures = [ "zstd/pkg-config" ];

View file

@ -18,7 +18,7 @@ python3Packages.buildPythonApplication rec {
LC_ALL = "en_US.UTF-8";
checkInputs = with python3Packages; [ pytestCheckHook ];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
propagatedBuildInputs = [
less
file

View file

@ -51,7 +51,7 @@ let
inherit version;
sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c";
};
checkInputs = old.checkInputs ++ (with self; [
nativeCheckInputs = old.nativeCheckInputs ++ (with self; [
requests
]);
disabledTests = old.disabledTests ++ [

View file

@ -37,7 +37,7 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
pytest
pytest-xvfb
pytest-mock

View file

@ -9,7 +9,7 @@ python3Packages.buildPythonApplication rec {
sha256 = "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0";
};
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
pytestCheckHook pytest-xdist responses
];

View file

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
--add-flags '--theme=feh'
'';
checkInputs = lib.singleton (perl.withPackages (p: [ p.TestCommand ]));
nativeCheckInputs = lib.singleton (perl.withPackages (p: [ p.TestCommand ]));
doCheck = true;
meta = with lib; {

View file

@ -89,7 +89,7 @@ perlPackages.buildPerlPackage rec {
outputs = [ "out" "man" ];
checkInputs = [
nativeCheckInputs = [
imagemagick
libtiff
djvulibre

View file

@ -51,7 +51,7 @@ python3Packages.buildPythonPackage rec {
twisted
];
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
nose
mock
httmock

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation {
sha256 = "XWwkuw+Um/cflRWjIeIgQUxJLrk2DLDmx7K+pMWvIlI=";
};
checkInputs = [
nativeCheckInputs = [
python3.pkgs.inkex
python3.pkgs.pytestCheckHook
];

View file

@ -74,7 +74,7 @@ in buildPythonApplication rec {
pygobject3
];
checkInputs = [
nativeCheckInputs = [
gtk3
];

View file

@ -21,7 +21,7 @@ buildPythonApplication rec {
python-dateutil
];
checkInputs = [
nativeCheckInputs = [
pytestCheckHook
];

View file

@ -28,7 +28,7 @@ with python3.pkgs; buildPythonApplication rec {
sha256 = "sha256-7piJK1hz9h6EWiU/q5MAS1PSvHFxnW7rZBKxq+wda1c=";
};
checkInputs = [
nativeCheckInputs = [
hypothesis
pytest
pytest-vcr

View file

@ -67,7 +67,7 @@ buildPythonApplication rec {
pango
];
checkInputs = [
nativeCheckInputs = [
pytestCheckHook
];

View file

@ -20,7 +20,7 @@ in pythonPackages.buildPythonApplication rec {
propagatedBuildInputs = with pythonPackages; [ attrs beautifulsoup4 configargparse keyring pyasn1 requests six urllib3 ];
checkInputs = with pythonPackages; [ pytest mock ];
nativeCheckInputs = with pythonPackages; [ pytest mock ];
postPatch = ''
substituteInPlace requirements.txt \

View file

@ -53,7 +53,7 @@ buildPythonApplication rec {
click
];
checkInputs = [ pytestCheckHook ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "CLI for querying Databricks SQL";

View file

@ -34,7 +34,7 @@ python3.pkgs.buildPythonApplication rec {
watchdog
] ++ typer.optional-dependencies.all;
checkInputs = [
nativeCheckInputs = [
git
] ++ (with python3.pkgs; [
pytest-asyncio

View file

@ -12,7 +12,7 @@ python3Packages.buildPythonApplication rec {
# No tests in archive
doCheck = false;
checkInputs = with python3Packages; [ pytest ];
nativeCheckInputs = with python3Packages; [ pytest ];
propagatedBuildInputs = with python3Packages; [ click ];
meta = with lib; {

View file

@ -34,7 +34,7 @@ python3Packages.buildPythonApplication rec {
"NO_VENV=1"
];
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
pytestCheckHook
];
preCheck = ''

View file

@ -55,7 +55,7 @@ python3Packages.buildPythonApplication rec {
--replace "(share_dir" "(\"share\""
'';
checkInputs = with python3Packages; [ pytest ];
nativeCheckInputs = with python3Packages; [ pytest ];
checkPhase = ''
unset HOME

View file

@ -117,7 +117,7 @@ python3.pkgs.buildPythonApplication {
wrapQtApp $out/bin/electrum
'';
checkInputs = with python3.pkgs; [ pytestCheckHook pyaes pycryptodomex ];
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook pyaes pycryptodomex ];
pytestFlagsArray = [ "electrum/tests" ];

View file

@ -109,7 +109,7 @@ python3.pkgs.buildPythonApplication {
wrapQtApp $out/bin/electrum-ltc
'';
checkInputs = with python3.pkgs; [ pytestCheckHook pyaes pycryptodomex ];
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook pyaes pycryptodomex ];
pytestFlagsArray = [ "electrum_ltc/tests" ];

View file

@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
"-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
];
checkInputs = [
nativeCheckInputs = [
dbus
];

View file

@ -16,7 +16,7 @@ buildPythonApplication rec {
yt-dlp
];
checkInputs = [
nativeCheckInputs = [
pytestCheckHook
];

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson ninja pkg-config gettext check dbus ];
buildInputs = [ libintl libiconv json_c ];
propagatedBuildInputs = [ glib gtk ];
checkInputs = [ xvfb-run ];
nativeCheckInputs = [ xvfb-run ];
doCheck = !stdenv.isDarwin;

View file

@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
++ lib.optional withGUI qtserialport
++ lib.optional (withGUI && withMapPreview) qtwebengine;
checkInputs = [ libxml2 which ];
nativeCheckInputs = [ libxml2 which ];
preConfigure = lib.optionalString withGUI ''
lrelease gui/*.ts gui/coretool/*.ts

View file

@ -18,7 +18,7 @@ buildGoModule rec {
"-X github.com/giantswarm/gsctl/buildinfo.Version=${version}"
];
checkInputs = [
nativeCheckInputs = [
kubectl
];

View file

@ -52,7 +52,7 @@ buildPythonApplication rec {
# will fail without pre-seeded config files
doCheck = false;
checkInputs = [ unittestCheckHook mock ];
nativeCheckInputs = [ unittestCheckHook mock ];
unittestFlagsArray = [ "-s" "tests" "-v" ];

View file

@ -23,7 +23,7 @@ buildPythonApplication rec {
sha256 = "0k0gjlqjz424rymcfdjpj6a71ppblfls5f8y2hd800d1as4im8az";
};
checkInputs = [ manuel ];
nativeCheckInputs = [ manuel ];
propagatedBuildInputs = [ setuptools docutils lxml svg-path pygments watchdog ];
meta = with lib; {

View file

@ -13,7 +13,7 @@ buildPythonApplication rec {
propagatedBuildInputs = [ openjdk ];
checkInputs = [ nose ];
nativeCheckInputs = [ nose ];
checkPhase = "PATH=$PATH:$out/bin nosetests";
meta = with lib; {

View file

@ -24,7 +24,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles pkg-config rustPlatform.bindgenHook ];
buildInputs = [ openssl ]
++ lib.optional stdenv.isDarwin Security;
checkInputs = [ gitMinimal util-linuxMinimal ];
nativeCheckInputs = [ gitMinimal util-linuxMinimal ];
cargoSha256 = "1vnrc72g2271i2p847z30kplxmdpi60n3dzpw0s7dahg33g14ai6";

View file

@ -30,7 +30,7 @@ python3.pkgs.buildPythonApplication rec {
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ pcre sqlite ];
propagatedBuildInputs = with python3.pkgs; [ click flask kanjidraw ];
checkInputs = [ nodejs ];
nativeCheckInputs = [ nodejs ];
preBuild = ''
export JITEN_VERSION=${version} # override `git describe`

View file

@ -35,7 +35,7 @@ python3.pkgs.buildPythonApplication rec {
rich
];
checkInputs = with python3.pkgs; [
nativeCheckInputs = with python3.pkgs; [
pytest-bdd
pytest-xdist
pytestCheckHook

View file

@ -20,7 +20,7 @@ python3Packages.buildPythonApplication rec {
pynput
];
checkInputs = [ xvfb-run ];
nativeCheckInputs = [ xvfb-run ];
checkPhase = ''
xvfb-run python setup.py test
'';

View file

@ -47,7 +47,7 @@ python3.pkgs.buildPythonApplication rec {
urwid
];
checkInputs = with python3.pkgs;[
nativeCheckInputs = with python3.pkgs;[
freezegun
hypothesis
packaging

View file

@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
pugixml
];
checkInputs = [
nativeCheckInputs = [
gtest
];

View file

@ -123,7 +123,7 @@ buildPythonApplication rec {
--replace "'libmagic.so.1'" "'${lib.getLib file}/lib/libmagic.so.1'"
'';
checkInputs = [ xvfb-run nose2 flake8 ] ++ requiredTools;
nativeCheckInputs = [ xvfb-run nose2 flake8 ] ++ requiredTools;
checkPhase = ''
runHook preCheck

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
# when running these tests inside build, based on free disk space.
doCheck = false;
checkTarget = "test";
checkInputs = [ which zstd pbzip2 ];
nativeCheckInputs = [ which zstd pbzip2 ];
installPhase = ''
mkdir -p $out/{bin,share/{${pname}-${version},man/man1}}

View file

@ -11,7 +11,7 @@ buildPythonApplication rec {
sha256 = "06d62r89h026asaa4ryzb23m86j0cmbvy54kf4zl5f35sgiha45z";
};
checkInputs = [ nose ];
nativeCheckInputs = [ nose ];
checkPhase = "nosetests";
meta = with lib; {

View file

@ -46,7 +46,7 @@ buildPythonApplication rec {
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
checkInputs = with python3.pkgs; [
nativeCheckInputs = with python3.pkgs; [
unittestCheckHook
];

View file

@ -46,7 +46,7 @@ python3Packages.buildPythonApplication rec {
gtk3
];
checkInputs = with python3Packages; [
nativeCheckInputs = with python3Packages; [
glibcLocales
pytest
tox

View file

@ -28,7 +28,7 @@ python3Packages.buildPythonApplication rec {
./update_hack.patch
];
checkInputs = [ python3Packages.pytestCheckHook ];
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
# disable test that fail (networking, etc)
disabledTests = [

View file

@ -34,7 +34,7 @@ python3.pkgs.buildPythonApplication rec {
setuptools
];
checkInputs = [
nativeCheckInputs = [
git
mercurial
patch

View file

@ -13,7 +13,7 @@ buildPythonApplication rec {
propagatedBuildInputs = [ git ];
checkInputs = [ pytestCheckHook git ];
nativeCheckInputs = [ pytestCheckHook git ];
passthru.tests.version = testers.testVersion {
package = mu-repo;

View file

@ -136,7 +136,7 @@ let
py.pkgs.appdirs
];
checkInputs = with self; [
nativeCheckInputs = with self; [
ddt
mock
pytestCheckHook

View file

@ -93,7 +93,7 @@ python3.pkgs.buildPythonApplication rec {
dconf
];
checkInputs = [
nativeCheckInputs = [
# for Onboard.SpellChecker.aspell_cmd doctests
(aspellWithDicts (dicts: with dicts; [ en ]))

View file

@ -30,7 +30,7 @@ buildPythonPackage rec {
#
# See also https://discourse.nixos.org/t/qt-plugin-path-unset-in-test-phase/
#checkInputs = [ mock nose ];
#nativeCheckInputs = [ mock nose ];
nativeBuildInputs = [ qt5.qttools ];
propagatedBuildInputs = [
alembic

View file

@ -50,7 +50,7 @@ python3.pkgs.buildPythonApplication rec {
secretstorage
];
checkInputs =
nativeCheckInputs =
let
ps = python3.pkgs;
in

View file

@ -25,7 +25,7 @@
# sed on many of the platforms Plover builds for
postPatch = "sed -i /PyQt5/d setup.cfg";
checkInputs = [ pytest mock ];
nativeCheckInputs = [ pytest mock ];
propagatedBuildInputs = [ babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
dontWrapQtApps = true;

View file

@ -32,7 +32,7 @@ let
inherit version;
sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c";
};
checkInputs = old.checkInputs ++ (with self; [
nativeCheckInputs = old.nativeCheckInputs ++ (with self; [
requests
]);
doCheck = false;
@ -81,7 +81,7 @@ let
# however `click-7` is needed by the older flask we need here. Since it's just
# for the test-suite apparently, let's skip it for now.
Mako = super.Mako.overridePythonAttrs (lib.const {
checkInputs = [];
nativeCheckInputs = [];
doCheck = false;
});
};
@ -119,7 +119,7 @@ python3'.pkgs.buildPythonPackage rec {
passthru.tests = { inherit (nixosTests) privacyidea; };
checkInputs = with python3'.pkgs; [ openssl mock pytestCheckHook responses testfixtures ];
nativeCheckInputs = with python3'.pkgs; [ openssl mock pytestCheckHook responses testfixtures ];
preCheck = "export HOME=$(mktemp -d)";
postCheck = "unset HOME";
disabledTests = [

View file

@ -82,7 +82,7 @@ stdenv.mkDerivation rec {
xorg.libX11
] ++ lib.optionals withSystemd [
systemd
] ++ checkInputs;
] ++ nativeCheckInputs;
patches = [
# Fix detection of TBB, see https://github.com/prusa3d/PrusaSlicer/issues/6355
@ -103,7 +103,7 @@ stdenv.mkDerivation rec {
];
doCheck = true;
checkInputs = [ gtest ];
nativeCheckInputs = [ gtest ];
separateDebugInfo = true;

View file

@ -9,7 +9,7 @@ buildPythonPackage rec {
sha256 = "1pxzr8sfm2hc5s96m9k044i44nwkva70n0ypr6a35v73zn891cx5";
};
checkInputs = [ pytest-runner pytest ];
nativeCheckInputs = [ pytest-runner pytest ];
meta = with lib; {
homepage = "http://python-cerberus.org/";

View file

@ -15,7 +15,7 @@ in buildPythonApplication rec {
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ pyyaml six jinja2 cerberus_1_1 ];
checkInputs = [ unittestCheckHook ];
nativeCheckInputs = [ unittestCheckHook ];
meta = with lib; {
homepage = "https://pythonhosted.org/pyditz/";

View file

@ -63,7 +63,7 @@ in python.pkgs.buildPythonApplication rec {
"--prefix" "PATH" ":" (lib.makeBinPath [ perl gpsbabel ])
];
checkInputs = [
nativeCheckInputs = [
glibcLocales
perl
xvfb-run

View file

@ -34,7 +34,7 @@ python3.pkgs.buildPythonApplication rec {
setuptools # needs pkg_resources
];
checkInputs = [
nativeCheckInputs = [
ffmpeg
] ++ (with python3.pkgs; [
pytestCheckHook

View file

@ -16,7 +16,7 @@ buildGoModule rec {
sha256 = "sha256-K8VsqaNUPxh3/Yddy6DFiOyjRuZ6r6bU456Pm31A1og=";
};
checkInputs = [
nativeCheckInputs = [
bash
go
];

View file

@ -79,7 +79,7 @@ python3Packages.buildPythonApplication rec {
xlib
];
checkInputs = [
nativeCheckInputs = [
xvfb-run
python3Packages.pytest
python3Packages.hypothesis-auto

View file

@ -118,7 +118,7 @@ python.pkgs.pythonPackages.buildPythonPackage rec {
runHook postInstall
'';
checkInputs = with python.pkgs; [
nativeCheckInputs = with python.pkgs; [
pytestCheckHook
pytest-django
pytest-factoryboy

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation (finalAttrs: {
};
buildInputs = [ sqlite zlib ];
checkInputs = [ perl ];
nativeCheckInputs = [ perl ];
makeFlags = [ "PREFIX=$(out)" ];

View file

@ -11,7 +11,7 @@ python3Packages.buildPythonApplication rec {
sha256 = "sha256-qZk42zGHWpeN5rZPFw7xAmDIvhPzqTePU3If+p/L98c=";
};
checkInputs = with python3Packages; [ pytest ];
nativeCheckInputs = with python3Packages; [ pytest ];
propagatedBuildInputs = with python3Packages;
[ requests beautifulsoup4 future wcwidth urwid psycopg2 ];

View file

@ -22,7 +22,7 @@ buildPythonApplication rec {
watchdog
];
checkInputs = [ unittestCheckHook mock freezegun pylint ];
nativeCheckInputs = [ unittestCheckHook mock freezegun pylint ];
# Skip test that has been reported multiple times upstream without result:
# bram85/topydo#271, bram85/topydo#274.

View file

@ -39,7 +39,7 @@ python3Packages.buildPythonApplication rec {
gtk3 gobject-introspection
glib
];
checkInputs = with python3Packages; [ flake8 pytest ];
nativeCheckInputs = with python3Packages; [ flake8 pytest ];
propagatedBuildInputs = with python3Packages; [
svgwrite pyxdg pycairo pygobject3 setuptools-scm
];

Some files were not shown because too many files have changed in this diff Show more