Files
nixpkgs/pkgs/development/python-modules/daqp/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
unittestCheckHook,
cython,
setuptools,
wheel,
numpy,
}:
buildPythonPackage rec {
pname = "daqp";
version = "0.7.2";
format = "pyproject";
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 = with lib; {
description = "Dual active-set algorithm for convex quadratic programming";
homepage = "https://github.com/darnstrom/daqp";
license = licenses.mit;
maintainers = with maintainers; [ renesat ];
};
}