From 899d61fe3171696d154b6abedae59ad13af7ec9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 15 Nov 2025 12:25:16 -0800 Subject: [PATCH 1/3] python3Packages.uncompresspy: init at 0.4.1 --- .../python-modules/uncompresspy/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/uncompresspy/default.nix diff --git a/pkgs/development/python-modules/uncompresspy/default.nix b/pkgs/development/python-modules/uncompresspy/default.nix new file mode 100644 index 000000000000..1e453ca0d57a --- /dev/null +++ b/pkgs/development/python-modules/uncompresspy/default.nix @@ -0,0 +1,32 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, +}: + +buildPythonPackage rec { + pname = "uncompresspy"; + version = "0.4.1"; + pyproject = true; + + # no tags on GitHub + src = fetchPypi { + inherit pname version; + hash = "sha256-556tZurtjUI2TYB8C6PzqK7w4Ah6m+rxpg8jqAimwUc="; + }; + + build-system = [ setuptools ]; + + pythonImportsCheck = [ "uncompresspy" ]; + + # upstream has no tests + doCheck = false; + + meta = { + description = "Pure Python package for uncompressing LZW files (.Z), such as the ones created by Unix's shell tool compress"; + homepage = "https://github.com/kYwzor/uncompresspy"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cfacc63e518b..b43420658b42 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19689,6 +19689,8 @@ self: super: with self; { uncertainties = callPackage ../development/python-modules/uncertainties { }; + uncompresspy = callPackage ../development/python-modules/uncompresspy { }; + uncompyle6 = callPackage ../development/python-modules/uncompyle6 { }; undefined = callPackage ../development/python-modules/undefined { }; From 2cdf5e15b494757b2994a82e15344d2b29007d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 15 Nov 2025 12:26:17 -0800 Subject: [PATCH 2/3] python3Packages.astropy: add optional dependency uncompresspy --- pkgs/development/python-modules/astropy/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index d8751b9e6c7d..ebc41c036919 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -40,6 +40,7 @@ bottleneck, fsspec, s3fs, + uncompresspy, # testing pytestCheckHook, @@ -112,6 +113,7 @@ buildPythonPackage rec { bottleneck fsspec s3fs + uncompresspy ] ++ self.recommended ++ self.ipython From 8bc5341ba6012497838e71acc7410af8f9b64897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 15 Nov 2025 10:48:55 -0800 Subject: [PATCH 3/3] python3Packages.astropy: reduce test dependencies 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. --- pkgs/development/python-modules/astropy/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index ebc41c036919..0489821f7a82 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -43,10 +43,12 @@ uncompresspy, # testing + hypothesis, pytestCheckHook, pytest-xdist, pytest-astropy-header, - pytest-astropy, + pytest-doctestplus, + pytest-remotedata, threadpoolctl, }: @@ -123,11 +125,16 @@ buildPythonPackage rec { }); nativeCheckInputs = [ + hypothesis pytestCheckHook pytest-xdist pytest-astropy-header - pytest-astropy + pytest-doctestplus + pytest-remotedata threadpoolctl + # FIXME remove in 7.2.0 + # see https://github.com/astropy/astropy/pull/18882 + uncompresspy ] ++ optional-dependencies.recommended;