···6# * application: Whether this package is a python library or an
7# application which happens to be written in python.
8# * doCheck: Whether to run the test suites.
9-pythonPackages:
10-{ src, info, meta ? {}, application ? false, doCheck ? true }: let
11 build = if application
12 then pythonPackages.buildPythonApplication
13 else pythonPackages.buildPythonPackage;
···1819 nativeBuildInputs = map (p: pythonPackages.${p}) (
20 (info.setup_requires or []) ++
21- (if doCheck then (info.tests_require or []) else []));
02223 propagatedBuildInputs = map (p: pythonPackages.${p})
24 (info.install_requires or []);
···6# * application: Whether this package is a python library or an
7# application which happens to be written in python.
8# * doCheck: Whether to run the test suites.
9+lib: pythonPackages:
10+{ src, info, meta ? {}, application ? false, doCheck ? true}: let
11 build = if application
12 then pythonPackages.buildPythonApplication
13 else pythonPackages.buildPythonPackage;
···1819 nativeBuildInputs = map (p: pythonPackages.${p}) (
20 (info.setup_requires or []) ++
21+ (lib.optionals doCheck (info.tests_require or []))
22+ );
2324 propagatedBuildInputs = map (p: pythonPackages.${p})
25 (info.install_requires or []);
···41 useAppleSDKLibs = stdenv.hostPlatform.isAarch64;
4243 selectAttrs = attrs: names:
44- lib.listToAttrs (lib.concatMap (n: if attrs ? "${n}" then [(lib.nameValuePair n attrs."${n}")] else []) names);
4546 chooseLibs = (
47 # There are differences in which libraries are exported. Avoid evaluation
···41 useAppleSDKLibs = stdenv.hostPlatform.isAarch64;
4243 selectAttrs = attrs: names:
44+ lib.listToAttrs (lib.concatMap (n: lib.optionals (attrs ? "${n}") [(lib.nameValuePair n attrs."${n}")]) names);
4546 chooseLibs = (
47 # There are differences in which libraries are exported. Avoid evaluation
+1-3
pkgs/top-level/release-haskell.nix
···39 attrs:
40 if lib.isDerivation attrs
41 then [ attrs ]
42- else if lib.isAttrs attrs
43- then accumulateDerivations (lib.attrValues attrs)
44- else []
45 ) jobList;
4647 # names of all subsets of `pkgs.haskell.packages`
···39 attrs:
40 if lib.isDerivation attrs
41 then [ attrs ]
42+ else lib.optionals (lib.isAttrs attrs) (accumulateDerivations (lib.attrValues attrs))
0043 ) jobList;
4445 # names of all subsets of `pkgs.haskell.packages`
+1-1
pkgs/top-level/release-python.nix
···24 packagePython value
25 else
26 []);
27- in if res.success then res.value else []
28 );
2930 jobs = {
···24 packagePython value
25 else
26 []);
27+ in lib.optionals res.success res.value
28 );
2930 jobs = {