Merge pull request #290500 from wegank/quadprog-bump

python311Packages.quadprog: 0.1.11 -> 0.1.12
This commit is contained in:
Nick Cao 2024-02-22 09:11:29 -05:00 committed by GitHub
commit b3da980073
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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}";