python311Packages.quadprog: 0.1.11 -> 0.1.12

This commit is contained in:
Weijia Wang 2024-02-21 23:34:59 +01:00
parent f893cc7daa
commit 0eb55a5f2b

View File

@ -3,6 +3,7 @@
, pythonOlder
, fetchFromGitHub
, cython
, setuptools
, numpy
, pytestCheckHook
, scipy
@ -10,40 +11,32 @@
buildPythonPackage rec {
pname = "quadprog";
version = "0.1.11";
format = "setuptools";
version = "0.1.12";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = pname;
repo = pname;
owner = "quadprog";
repo = "quadprog";
rev = "v${version}";
hash = "sha256-/suv1KbG3HbiYqEiuCtB/ia3xbxAO5AMuWx1Svy0rMw=";
hash = "sha256-3S846PaNfZ4j3r6Vi2o6+Jk+2kC/P7tMSQQiB/Kx8nI=";
};
nativeBuildInputs = [
cython
setuptools
];
propagatedBuildInputs = [
numpy
];
preBuild = ''
cython quadprog/quadprog.pyx
'';
nativeCheckInputs = [
pytestCheckHook
scipy
];
pytestFlagsArray = [
# test fails on aarch64-darwin
"--deselect=tests/test_1.py::test_5"
];
meta = with lib; {
homepage = "https://github.com/quadprog/quadprog";
changelog = "https://github.com/quadprog/quadprog/releases/tag/v${version}";