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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
fftw,
pandas,
scikit-learn,
numpy,
pip,
setuptools,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage rec {
pname = "mrsqm";
version = "0.0.7";
pyproject = true;
build-system = [
setuptools
];
src = fetchFromGitHub {
owner = "mlgig";
repo = "mrsqm";
tag = "v.${version}";
hash = "sha256-5K6vCU0HExnmYNThZNDCbEtII9bUGauxDtKkJXe/85Q=";
};
buildInputs = [ fftw ];
nativeBuildInputs = [ cython ];
dependencies = [
pandas
scikit-learn
numpy
pip
];
postPatch = ''
substituteInPlace setup.py \
--replace-fail "setup_requires=['pytest-runner']," ""
substituteInPlace pyproject.toml \
--replace-fail "numpy==" "numpy>="
'';
preBuild = ''
export HOME=$(mktemp -d)
'';
nativeCheckInputs = [
pytestCheckHook
];
enabledTestPaths = [
"tests/mrsqm"
];
pythonImportsCheck = [ "mrsqm" ];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"v\\.(.*)"
];
};
meta = {
description = "MrSQM (Multiple Representations Sequence Miner) is a time series classifier";
homepage = "https://pypi.org/project/mrsqm";
changelog = "https://github.com/mlgig/mrsqm/releases/tag/v.${src.tag}";
license = lib.licenses.gpl3Only;
maintainers = [ ];
};
}
|