about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-12-02 03:29:04 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-12-02 03:29:43 +0100
commitac82700414f1c2877cc33d11bbc39d309295e367 (patch)
treeafc9167c592f3231db99f538fafb5df99f45c8d7
parent50311a8d071c7f741f9a4d12736a8025b962ec64 (diff)
update-python-libraries: quiet nix stderr output
We query lots of derivation attributes, most of which do not exist, so
logging stderr causes a lot of noise for no gain.
-rwxr-xr-xpkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py b/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py
index ff58c44380571..d9b539926b833 100755
--- a/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py
+++ b/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py
@@ -87,7 +87,8 @@ def _get_attr_value(attr_path: str) -> Optional[Any]:
                 f"{NIXPKGS_ROOT}/default.nix",
                 "--json",
                 f"{attr_path}",
-            ]
+            ],
+            stderr=subprocess.DEVNULL,
         )
         return json.loads(response.decode())
     except (subprocess.CalledProcessError, ValueError):