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

46 lines
872 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
cython,
setuptools,
numpy,
pytestCheckHook,
scipy,
}:
buildPythonPackage rec {
pname = "quadprog";
version = "0.1.12";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "quadprog";
repo = "quadprog";
rev = "v${version}";
hash = "sha256-3S846PaNfZ4j3r6Vi2o6+Jk+2kC/P7tMSQQiB/Kx8nI=";
};
nativeBuildInputs = [
cython
setuptools
];
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [
pytestCheckHook
scipy
];
meta = with lib; {
homepage = "https://github.com/quadprog/quadprog";
changelog = "https://github.com/quadprog/quadprog/releases/tag/v${version}";
description = "Quadratic Programming Solver";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ wegank ];
};
}