Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
948 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
ipopt,
numpy,
pkg-config,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "cyipopt";
version = "1.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mechmotum";
repo = "cyipopt";
tag = "v${version}";
hash = "sha256-feGGAwhNw+xZrSsag2W5nruQWAC6NP9k4F0X9EjaRTg=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ipopt ];
build-system = [
cython
numpy
setuptools
];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cyipopt" ];
meta = {
description = "Cython interface for the interior point optimzer IPOPT";
homepage = "https://github.com/mechmotum/cyipopt";
changelog = "https://github.com/mechmotum/cyipopt/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.epl20;
maintainers = with lib.maintainers; [ nim65s ];
};
}