blob: 4e2616a7f8ba010580d0628c9fdca396fe446340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
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 = [ ];
};
}
|