tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.pmdarima: fix build
wxt
1 year ago
d158f4ba
844e9777
+26
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pmdarima
default.nix
+26
-6
pkgs/development/python-modules/pmdarima/default.nix
···
14
14
pythonOlder,
15
15
python,
16
16
pytest7CheckHook,
17
17
+
setuptools,
17
18
}:
18
19
19
20
buildPythonPackage rec {
20
21
pname = "pmdarima";
21
22
version = "2.0.4";
22
22
-
format = "setuptools";
23
23
+
pyproject = true;
23
24
24
25
disabled = pythonOlder "3.7";
25
26
26
27
src = fetchFromGitHub {
27
28
owner = "alkaline-ml";
28
29
repo = "pmdarima";
29
29
-
rev = "refs/tags/v${version}";
30
30
+
tag = "v${version}";
30
31
hash = "sha256-LHwPgQRB/vP3hBM8nqafoCrN3ZSRIMWLzqTqDOETOEc=";
31
32
};
32
33
34
34
+
postPatch = ''
35
35
+
substituteInPlace pyproject.toml \
36
36
+
--replace-fail "numpy==" "numpy>=" \
37
37
+
--replace-fail "scipy==" "scipy>=" \
38
38
+
--replace-fail "statsmodels==" "statsmodels>="
39
39
+
'';
40
40
+
41
41
+
env = {
42
42
+
GITHUB_REF = "refs/tags/v${version}";
43
43
+
};
44
44
+
45
45
+
preBuild = ''
46
46
+
python build_tools/get_tag.py
47
47
+
'';
48
48
+
33
49
nativeBuildInputs = [ cython ];
34
50
35
35
-
propagatedBuildInputs = [
51
51
+
build-system = [
52
52
+
setuptools
53
53
+
];
54
54
+
55
55
+
dependencies = [
36
56
joblib
37
57
numpy
38
58
pandas
···
60
80
61
81
pythonImportsCheck = [ "pmdarima" ];
62
82
63
63
-
meta = with lib; {
83
83
+
meta = {
64
84
description = "Statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function";
65
85
homepage = "https://github.com/alkaline-ml/pmdarima";
66
86
changelog = "https://github.com/alkaline-ml/pmdarima/releases/tag/v${version}";
67
67
-
license = licenses.mit;
68
68
-
maintainers = with maintainers; [ mbalatsko ];
87
87
+
license = lib.licenses.mit;
88
88
+
maintainers = with lib.maintainers; [ mbalatsko ];
69
89
};
70
90
}