Something went wrong. Try again.
lol
Something went wrong. Try again.
959 B · 47 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ lib, buildPythonPackage, fetchFromGitHub, oldest-supported-numpy, pytestCheckHook, scipy, setuptools,}:
buildPythonPackage rec { pname = "ecos"; version = "2.0.14"; pyproject = true;
src = fetchFromGitHub { owner = "embotech"; repo = "ecos-python"; tag = "v${version}"; hash = "sha256-nfu1FicWr233r+VHxkQf1vqh2y4DGymJRmik8RJYJkA="; fetchSubmodules = true; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "numpy >= 2.0.0" numpy '';
build-system = [ setuptools ];
dependencies = [ oldest-supported-numpy scipy ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ecos" ];
meta = { description = "Python interface for ECOS"; homepage = "https://github.com/embotech/ecos-python"; changelog = "https://github.com/embotech/ecos-python/releases/tag/v${version}"; license = lib.licenses.gpl3Only; maintainers = [ ]; };}