mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
ae1d80dcca
Reduce the number of surprises when we go from staging to staging-next with python-unstable.
30 lines
824 B
Nix
30 lines
824 B
Nix
/*
|
|
test for example like this
|
|
$ hydra-eval-jobs pkgs/top-level/release-python.nix
|
|
*/
|
|
|
|
{ # The platforms for which we build Nixpkgs.
|
|
supportedSystems ? [
|
|
"aarch64-linux"
|
|
"x86_64-linux"
|
|
]
|
|
, # Attributes passed to nixpkgs. Don't build packages marked as unfree.
|
|
nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
|
|
}:
|
|
|
|
with import ./release-lib.nix {inherit supportedSystems nixpkgsArgs; };
|
|
with lib;
|
|
|
|
let
|
|
packagePython = mapAttrs (name: value:
|
|
let res = builtins.tryEval (
|
|
if isDerivation value then
|
|
value.meta.isBuildPythonPackage or []
|
|
else if value.recurseForDerivations or false || value.recurseForRelease or false then
|
|
packagePython value
|
|
else
|
|
[]);
|
|
in if res.success then res.value else []
|
|
);
|
|
in (mapTestOn (packagePython pkgs))
|