2012-12-22 04:17:22 +04:00
|
|
|
/*
|
2013-07-27 14:06:45 +04:00
|
|
|
test for example like this
|
2015-11-18 20:31:01 +03:00
|
|
|
$ hydra-eval-jobs pkgs/top-level/release-python.nix
|
2012-12-22 04:17:22 +04:00
|
|
|
*/
|
2013-07-27 14:06:45 +04:00
|
|
|
|
2018-07-21 03:44:44 +03:00
|
|
|
{ # The platforms for which we build Nixpkgs.
|
2021-09-06 05:18:50 +03:00
|
|
|
supportedSystems ? [
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
]
|
2020-09-11 19:20:35 +03:00
|
|
|
, # Attributes passed to nixpkgs. Don't build packages marked as unfree.
|
|
|
|
nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
|
2013-07-27 14:06:45 +04:00
|
|
|
}:
|
|
|
|
|
2020-09-11 19:20:35 +03:00
|
|
|
with import ./release-lib.nix {inherit supportedSystems nixpkgsArgs; };
|
2017-03-24 02:18:43 +03:00
|
|
|
with lib;
|
2012-12-22 04:17:22 +04:00
|
|
|
|
2015-11-19 18:39:34 +03:00
|
|
|
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
|
|
|
|
[]);
|
2023-02-14 21:11:59 +03:00
|
|
|
in lib.optionals res.success res.value
|
2015-11-19 18:39:34 +03:00
|
|
|
);
|
2022-02-11 22:35:21 +03:00
|
|
|
|
|
|
|
jobs = {
|
|
|
|
lib-tests = import ../../lib/tests/release.nix { inherit pkgs; };
|
|
|
|
pkgs-lib-tests = import ../pkgs-lib/tests { inherit pkgs; };
|
|
|
|
|
|
|
|
tested = pkgs.releaseTools.aggregate {
|
|
|
|
name = "python-tested";
|
|
|
|
meta.description = "Release-critical packages from the python package sets";
|
|
|
|
constituents = [
|
2023-09-24 18:55:45 +03:00
|
|
|
jobs.nixos-render-docs.x86_64-linux # Used in nixos manual
|
|
|
|
jobs.remarshal.x86_64-linux # Used in pkgs.formats helper
|
2023-09-16 13:30:00 +03:00
|
|
|
jobs.python311Packages.buildcatrust.x86_64-linux # Used in pkgs.cacert
|
|
|
|
jobs.python311Packages.colorama.x86_64-linux # Used in nixos test-driver
|
|
|
|
jobs.python311Packages.ptpython.x86_64-linux # Used in nixos test-driver
|
|
|
|
jobs.python311Packages.requests.x86_64-linux # Almost ubiquous package
|
|
|
|
jobs.python311Packages.sphinx.x86_64-linux # Document creation for many packages
|
2022-02-11 22:35:21 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
} // (mapTestOn (packagePython pkgs));
|
|
|
|
in jobs
|