1{ lib
2, buildPythonPackage
3, fetchPypi
4, cmake
5, pybind11
6, numpy
7, scipy
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "qdldl";
13 version = "0.1.7.post0";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-80ahFMg0LubU29ZHHu8xQZn7Jo0797lYhco1H94rAj8=";
18 };
19
20 dontUseCmakeConfigure = true;
21 nativeBuildInputs = [ cmake ];
22
23 buildInputs = [ pybind11 ];
24
25 propagatedBuildInputs = [
26 numpy
27 scipy
28 ];
29
30 pythonImportsCheck = [ "qdldl" ];
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 meta = with lib; {
34 description = "A free LDL factorization routine";
35 homepage = "https://github.com/oxfordcontrol/qdldl";
36 downloadPage = "https://github.com/oxfordcontrol/qdldl-python";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ drewrisinger ];
39 };
40}