ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pysparse / default.nix
blob02c1c36d083744f2ec2aee0efc70966ec93380ed
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , numpy
5 , blas
6 , lapack
7 , isPy27
8 , python
9 }:
11 buildPythonPackage {
12   pname = "pysparse";
13   version = "1.3-dev";
14   disabled = !isPy27;
16   src = fetchFromGitHub {
17     owner = "PythonOptimizers";
18     repo = "pysparse";
19     rev = "f8430bd99ac2a6209c462657c5792d10033888cc";
20     sha256 = "19xcq8214yndra1xjhna3qjm32wprsqck97dlnw3xcww7rfy6hqh";
21   };
23   hardeningDisable = [ "all" ];
25   propagatedBuildInputs = [
26     numpy
27     blas
28     lapack
29   ];
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 ];
37   checkPhase = ''
38     cd test
39     ${python.interpreter} -c "import pysparse"
40     ${python.interpreter} test_sparray.py
41   '';
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   };