depot/third_party/nixpkgs/pkgs/development/python-modules/qdldl/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
842 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
cmake,
pybind11,
numpy,
scipy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "qdldl";
version = "0.1.7.post2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-SxU5pewQzHV6/XFW1960AGAHythtd0yfD9w+NEFVV9M=";
};
dontUseCmakeConfigure = true;
nativeBuildInputs = [ cmake ];
buildInputs = [ pybind11 ];
propagatedBuildInputs = [
numpy
scipy
];
pythonImportsCheck = [ "qdldl" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Free LDL factorization routine";
homepage = "https://github.com/oxfordcontrol/qdldl";
downloadPage = "https://github.com/oxfordcontrol/qdldl-python";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}