depot/third_party/nixpkgs/pkgs/development/python-modules/qdldl/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
844 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 = "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 ];
};
}