diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index d8751b9e6c7d..0489821f7a82 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -40,12 +40,15 @@ bottleneck, fsspec, s3fs, + uncompresspy, # testing + hypothesis, pytestCheckHook, pytest-xdist, pytest-astropy-header, - pytest-astropy, + pytest-doctestplus, + pytest-remotedata, threadpoolctl, }: @@ -112,6 +115,7 @@ buildPythonPackage rec { bottleneck fsspec s3fs + uncompresspy ] ++ self.recommended ++ self.ipython @@ -121,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; 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 d3d59ccce835..dd61169c900c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19697,6 +19697,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 { };