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