Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 56 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, fetchFromGitHub, buildPythonPackage, unittestCheckHook, cython, setuptools, wheel, numpy,}:buildPythonPackage rec { pname = "daqp"; version = "0.7.1"; format = "pyproject";
src = fetchFromGitHub { owner = "darnstrom"; repo = "daqp"; tag = "v${version}"; hash = "sha256-s22LVnK1qGjIpat21eXYF/Io49IYbWf1y+VUbYuPZaY="; };
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 ]; };}