python311Packages.daqp: init at 0.5.1
This commit is contained in:
parent
d777a5bd04
commit
d80bf9ad96
52
pkgs/development/python-modules/daqp/default.nix
Normal file
52
pkgs/development/python-modules/daqp/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, unittestCheckHook
|
||||
, cython
|
||||
, setuptools
|
||||
, wheel
|
||||
, numpy
|
||||
}:
|
||||
buildPythonPackage {
|
||||
pname = "daqp";
|
||||
version = "0.5.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "darnstrom";
|
||||
repo = "daqp";
|
||||
rev = "5a15a3d16731d3d50f867218c1b281567db556fd";
|
||||
hash = "sha256-in7Ci/wM7i0csJ4XVfo1lboWOyfuuU+8E+TzGmMV3x0=";
|
||||
};
|
||||
|
||||
sourceRoot = "source/interfaces/daqp-python";
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's|../../../daqp|../..|' setup.py
|
||||
sed -i 's|if src_path and os.path.exists(src_path):|if False:|' setup.py
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
|
||||
unittestFlagsArray = [ "-s" "test" "-p" "'*.py'" "-v" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "daqp" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A dual active-set algorithm for convex quadratic programming";
|
||||
homepage = "https://github.com/darnstrom/daqp";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ renesat ];
|
||||
};
|
||||
}
|
@ -2367,6 +2367,8 @@ self: super: with self; {
|
||||
|
||||
daphne = callPackage ../development/python-modules/daphne { };
|
||||
|
||||
daqp = callPackage ../development/python-modules/daqp { };
|
||||
|
||||
dasbus = callPackage ../development/python-modules/dasbus { };
|
||||
|
||||
dash = callPackage ../development/python-modules/dash { };
|
||||
|
Loading…
Reference in New Issue
Block a user