In particular I don't want it to use pytest-cov. Since pytest-astropy
depends on that, we remove pytest-astropy and pick all dependencies of
pytest-astropy that are actually required.
This treewide change targets Python packages
that specifies pytest flags with pytestFlagsArray,
and whose flags cannot be consructed by other pytestCheckHook-honoured arguments.
Use the __structuredAttrs-agnostic argument pytestFlags
instead of the deprecated pytestFlagsArray.
For flags with option arguments,
join each flag and their option argument into a single command-line argument
following POSIX Utility Argument Syntax[1]
for easier overriding (remove/replace).
Examples:
* [ "-W" "ignore:message:WarningClass" ] ->
[ "-Wignore:message:WarningClass" ]
* [ "--reruns" "3" ] ->
[ "--reruns=3" ]
[1]: https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html
Parts of the build compile with -Werror and the build also passes in
-fno-strict-overflow which generates an unused command line argument
warning which causes the build to fail when -Werror is present.
Add -Wno-error=unused-command-line-argument to ignore.
In preparation for the deprecation of `stdenv.isX`.
These shorthands are not conducive to cross-compilation because they
hide the platforms.
Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way
One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059
There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.
```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
Folds the cython_3 attribute into the primary cython attribute and
migrates all packages from the versioned attribute.
The old version will be provided through the cython_0 attribute in an
effort to phase it out.
Add some informatory comments, add doronbehar as maintainers, use `rec`
instead of `let ... in`, add `pythonImportsCheck` and `pytestCheckHook`,
use `cd $out` to handle issue
https://github.com/NixOS/nixpkgs/issues/255262