| 
									
										
										
										
											2019-07-12 11:23:56 -04:00
										 |  |  | { lib | 
					
						
							|  |  |  | , buildPythonPackage | 
					
						
							|  |  |  | , fetchFromGitHub | 
					
						
							|  |  |  | , numpy | 
					
						
							|  |  |  | , setuptools | 
					
						
							| 
									
										
										
										
											2020-03-31 10:47:18 -04:00
										 |  |  | , blas | 
					
						
							|  |  |  | , lapack | 
					
						
							| 
									
										
										
										
											2019-07-12 11:23:56 -04:00
										 |  |  | , isPy27 | 
					
						
							|  |  |  | , python | 
					
						
							|  |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-13 21:52:01 +00:00
										 |  |  | buildPythonPackage { | 
					
						
							| 
									
										
										
										
											2019-07-12 11:23:56 -04:00
										 |  |  |   pname = "pysparse"; | 
					
						
							|  |  |  |   version = "1.3-dev"; | 
					
						
							|  |  |  |   disabled = !isPy27; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   src = fetchFromGitHub { | 
					
						
							|  |  |  |     owner = "PythonOptimizers"; | 
					
						
							|  |  |  |     repo = "pysparse"; | 
					
						
							|  |  |  |     rev = "f8430bd99ac2a6209c462657c5792d10033888cc"; | 
					
						
							|  |  |  |     sha256 = "19xcq8214yndra1xjhna3qjm32wprsqck97dlnw3xcww7rfy6hqh"; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   hardeningDisable = [ "all" ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   propagatedBuildInputs = [ | 
					
						
							|  |  |  |     numpy | 
					
						
							| 
									
										
										
										
											2020-03-31 10:47:18 -04:00
										 |  |  |     blas | 
					
						
							|  |  |  |     lapack | 
					
						
							| 
									
										
										
										
											2019-07-12 11:23:56 -04:00
										 |  |  |   ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # 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; { | 
					
						
							| 
									
										
										
										
											2020-03-31 21:11:51 -04:00
										 |  |  |     homepage = "https://github.com/PythonOptimizers/pysparse"; | 
					
						
							| 
									
										
										
										
											2019-07-12 11:23:56 -04:00
										 |  |  |     description = "A Sparse Matrix Library for Python"; | 
					
						
							|  |  |  |     license = licenses.bsd3; | 
					
						
							|  |  |  |     maintainers = with maintainers; [ costrouc ]; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } |