depot/third_party/nixpkgs/pkgs/development/python-modules/qdldl/default.nix

41 lines
809 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, cmake
, pybind11
, numpy
, scipy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "qdldl";
version = "0.1.5.post3";
src = fetchPypi {
inherit pname version;
hash = "sha256-acCS9uH8I/t3moCmLm/N/i66BcklhgJIxNZ1T0c2k48=";
};
dontUseCmakeConfigure = true;
nativeBuildInputs = [ cmake ];
buildInputs = [ pybind11 ];
propagatedBuildInputs = [
numpy
scipy
];
pythonImportsCheck = [ "qdldl" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "A free LDL factorization routine";
homepage = "https://github.com/oxfordcontrol/qdldl";
downloadPage = "https://github.com/oxfordcontrol/qdldl-python";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}