at master 872 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 cython, 7 setuptools, 8 numpy, 9 pytestCheckHook, 10 scipy, 11}: 12 13buildPythonPackage rec { 14 pname = "quadprog"; 15 version = "0.1.13"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "quadprog"; 22 repo = "quadprog"; 23 rev = "v${version}"; 24 hash = "sha256-8gPuqDY3ajw/+B6kJdtpq+HL+Oq2Nsy/O7m+IWzxP38="; 25 }; 26 27 nativeBuildInputs = [ 28 cython 29 setuptools 30 ]; 31 32 propagatedBuildInputs = [ numpy ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 scipy 37 ]; 38 39 meta = with lib; { 40 homepage = "https://github.com/quadprog/quadprog"; 41 changelog = "https://github.com/quadprog/quadprog/releases/tag/v${version}"; 42 description = "Quadratic Programming Solver"; 43 license = licenses.gpl2Plus; 44 maintainers = with maintainers; [ wegank ]; 45 }; 46}