mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 10:46:31 +01:00
This is almost all find-and-replace. I manually edited: * pkgs/development/python-modules/notifications-android-tv/default.nix, * pkgs/servers/home-assistant/default.nix, * pkgs/development/tools/continuous-integration/buildbot/master.nix A few files have not been changed in this PR because they would cause rebuilds. This PR should have 0 rebuilds.
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
unittestCheckHook,
|
|
cython,
|
|
setuptools,
|
|
wheel,
|
|
numpy,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "daqp";
|
|
version = "0.7.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "darnstrom";
|
|
repo = "daqp";
|
|
tag = "v${version}";
|
|
hash = "sha256-I+ObnFAAhRoYtPEDXGP6BI+Zk9CH5yU27JJ+tWbcACQ=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/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 = {
|
|
description = "Dual active-set algorithm for convex quadratic programming";
|
|
homepage = "https://github.com/darnstrom/daqp";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ renesat ];
|
|
};
|
|
}
|