1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, blas 6, lapack 7, isPy27 8, python 9}: 10 11buildPythonPackage { 12 pname = "pysparse"; 13 version = "1.3-dev"; 14 disabled = !isPy27; 15 16 src = fetchFromGitHub { 17 owner = "PythonOptimizers"; 18 repo = "pysparse"; 19 rev = "f8430bd99ac2a6209c462657c5792d10033888cc"; 20 sha256 = "19xcq8214yndra1xjhna3qjm32wprsqck97dlnw3xcww7rfy6hqh"; 21 }; 22 23 hardeningDisable = [ "all" ]; 24 25 propagatedBuildInputs = [ 26 numpy 27 blas 28 lapack 29 ]; 30 31 # Include patches from working version of PySparse 1.3-dev in 32 # Conda-Forge, 33 # https://github.com/conda-forge/pysparse-feedstock/tree/b69266911a2/recipe 34 # Thanks to https://github.com/guyer 35 patches = [ ./dropPackageLoader.patch ]; 36 37 checkPhase = '' 38 cd test 39 ${python.interpreter} -c "import pysparse" 40 ${python.interpreter} test_sparray.py 41 ''; 42 43 meta = with lib; { 44 homepage = "https://github.com/PythonOptimizers/pysparse"; 45 description = "A Sparse Matrix Library for Python"; 46 license = licenses.bsd3; 47 maintainers = with maintainers; [ costrouc ]; 48 }; 49}