mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-20 04:02:40 +03:00
python3Packages.quadprog: init at 0.1.11
This commit is contained in:
parent
8b0e7e5689
commit
ab742f9d08
54
pkgs/development/python-modules/quadprog/default.nix
Normal file
54
pkgs/development/python-modules/quadprog/default.nix
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cython
|
||||||
|
, numpy
|
||||||
|
, pytestCheckHook
|
||||||
|
, scipy
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "quadprog";
|
||||||
|
version = "0.1.11";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = pname;
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-/suv1KbG3HbiYqEiuCtB/ia3xbxAO5AMuWx1Svy0rMw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cython
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
numpy
|
||||||
|
];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
cython quadprog/quadprog.pyx
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
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}";
|
||||||
|
description = "Quadratic Programming Solver";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ wegank ];
|
||||||
|
};
|
||||||
|
}
|
@ -9572,6 +9572,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
qtpy = callPackage ../development/python-modules/qtpy { };
|
qtpy = callPackage ../development/python-modules/qtpy { };
|
||||||
|
|
||||||
|
quadprog = callPackage ../development/python-modules/quadprog { };
|
||||||
|
|
||||||
qualysclient = callPackage ../development/python-modules/qualysclient { };
|
qualysclient = callPackage ../development/python-modules/qualysclient { };
|
||||||
|
|
||||||
quamash = callPackage ../development/python-modules/quamash { };
|
quamash = callPackage ../development/python-modules/quamash { };
|
||||||
|
Loading…
Reference in New Issue
Block a user