Files
nixpkgs/pkgs/development/python-modules/ecos/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
1007 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 = {
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 = [ ];
};
}