Unverified Commit 8e9cbfa2 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.astropy: add optional dependency uncompresspy, reduce test dependencies (#462040)

parents 2bb9553e 8bc5341b
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -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;

+32 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };