python3Packages.astropy: add optional dependency uncompresspy, reduce test dependencies (#462040)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user