Merge pull request #218502 from alyssais/pysparse

python2.pkgs.pysparse: drop
This commit is contained in:
Fabian Affolter 2023-03-01 00:17:22 +01:00 committed by GitHub
commit 7de7b4ea8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 139 deletions

View File

@ -1,49 +0,0 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, blas
, lapack
, isPy27
, python
}:
buildPythonPackage {
pname = "pysparse";
version = "1.3-dev";
disabled = !isPy27;
src = fetchFromGitHub {
owner = "PythonOptimizers";
repo = "pysparse";
rev = "f8430bd99ac2a6209c462657c5792d10033888cc";
sha256 = "19xcq8214yndra1xjhna3qjm32wprsqck97dlnw3xcww7rfy6hqh";
};
hardeningDisable = [ "all" ];
propagatedBuildInputs = [
numpy
blas
lapack
];
# Include patches from working version of PySparse 1.3-dev in
# Conda-Forge,
# https://github.com/conda-forge/pysparse-feedstock/tree/b69266911a2/recipe
# Thanks to https://github.com/guyer
patches = [ ./dropPackageLoader.patch ];
checkPhase = ''
cd test
${python.interpreter} -c "import pysparse"
${python.interpreter} test_sparray.py
'';
meta = with lib; {
homepage = "https://github.com/PythonOptimizers/pysparse";
description = "A Sparse Matrix Library for Python";
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
};
}

View File

@ -1,88 +0,0 @@
diff --git a/pysparse/__init__.py b/pysparse/__init__.py
index 6d09b00..ff39084 100644
--- a/pysparse/__init__.py
+++ b/pysparse/__init__.py
@@ -1,9 +1,42 @@
-"PySparse: A Fast Sparse Matrix Library for Python"
+"""
+PySparse: A Fast Sparse Matrix Library for Python
+=================================================
+
+Documentation is available in the docstrings and
+online at http://pysparse.sourceforge.net/.
+
+Contents
+--------
+Pysparse imports
+::
+ spmatrix --- sparse matrix types
+
+and, in addition, provides:
+
+Subpackages
+-----------
+Using any of these subpackages requires an explicit import. For example,
+``import pysparse.itsolvers``.
+
+::
+
+ itsolvers --- Iterative linear algebra solvers
+ precon --- Preconditioners
+ direct --- Direct solvers
+ direct.superlu --- Wrappers to SuperLU library
+ direct.umfpack --- Wrappers to UMFPACK library
+ eigen.jdsym --- Jacobi davidson eigenvalue solver for symmetric matrices
+
+Utility tools
+-------------
+::
+
+ __version__ --- pysparse version string
+"""
+
__docformat__ = 'restructuredtext'
-# Imports
-from numpy._import_tools import PackageLoader
try:
from version import version as __version__
except ImportError:
@@ -11,31 +44,6 @@ except ImportError:
__version__ = 'undefined'
from sparse import spmatrix
-#from sparse import *
-from misc import get_include
-
-pkgload = PackageLoader()
-pkgload(verbose=False,postpone=True)
-
-if __doc__:
- __doc__ += """
-
-Available subpackages
----------------------
-"""
-if __doc__:
- __doc__ += pkgload.get_pkgdocs()
-
-__all__ = filter(lambda s: not s.startswith('_'), dir())
-__all__ += '__version__'
-
-__doc__ += """
-
-Miscellaneous
--------------
-
- __version__ : pysparse version string
-"""
from pysparse.misc import Deprecated
@@ -47,3 +55,5 @@ class _superlu:
return self.factorizeFnc(*args, **kwargs)
superlu = _superlu()
+
+__all__ = ['spmatrix', 'superlu', '__version__']

View File

@ -184,6 +184,7 @@ mapAliases ({
pyroute2-nslink = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16
pyroute2-protocols = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16
pysmart-smartx = pysmart; # added 2021-10-22
pysparse = throw "pysparse has been abandoned upstream."; # added 2023-02-28
pyspotify = throw "pyspotify has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29
pytest_6 = pytest; # added 2022-02-10
pytestcov = pytest-cov; # added 2021-01-04

View File

@ -8931,8 +8931,6 @@ self: super: with self; {
pyspark = callPackage ../development/python-modules/pyspark { };
pysparse = callPackage ../development/python-modules/pysparse { };
pyspcwebgw = callPackage ../development/python-modules/pyspcwebgw { };
pyspellchecker = callPackage ../development/python-modules/pyspellchecker { };