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
51 lines
1013 B
Nix
51 lines
1013 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
oldest-supported-numpy,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
scipy,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ecos";
|
|
version = "2.0.14";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
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 = with lib; {
|
|
description = "Python interface for ECOS";
|
|
homepage = "https://github.com/embotech/ecos-python";
|
|
changelog = "https://github.com/embotech/ecos-python/releases/tag/v${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ ];
|
|
};
|
|
}
|