blob: d83f3ed3ddd81ca297a8ad099e40cdf5a69cfd75 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
cffi,
setuptools,
# dependencies
numpy,
platformdirs,
# tests
pytestCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage (finalAttrs: {
pname = "moocore";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "multi-objective";
repo = "moocore";
tag = "v${finalAttrs.version}";
hash = "sha256-a0UA06no7pZd+8WQIUUrB5u87T3PoPv7dldBChEh4bw=";
};
sourceRoot = "${finalAttrs.src.name}/python";
build-system = [
cffi
setuptools
];
dependencies = [
cffi
numpy
platformdirs
];
pythonImportsCheck = [ "moocore" ];
nativeCheckInputs = [
pytestCheckHook
writableTmpDirAsHomeHook
];
disabledTests = [
# Require downloading data from the internet
"test_read_datasets_data"
];
meta = {
description = "Core Mathematical Functions for Multi-Objective Optimization";
homepage = "https://github.com/multi-objective/moocore/tree/main/python";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})
|