lol

python312Packages.pmdarima: fix build

wxt d158f4ba 844e9777

+26 -6
+26 -6
pkgs/development/python-modules/pmdarima/default.nix
··· 14 pythonOlder, 15 python, 16 pytest7CheckHook, 17 }: 18 19 buildPythonPackage rec { 20 pname = "pmdarima"; 21 version = "2.0.4"; 22 - format = "setuptools"; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "alkaline-ml"; 28 repo = "pmdarima"; 29 - rev = "refs/tags/v${version}"; 30 hash = "sha256-LHwPgQRB/vP3hBM8nqafoCrN3ZSRIMWLzqTqDOETOEc="; 31 }; 32 33 nativeBuildInputs = [ cython ]; 34 35 - propagatedBuildInputs = [ 36 joblib 37 numpy 38 pandas ··· 60 61 pythonImportsCheck = [ "pmdarima" ]; 62 63 - meta = with lib; { 64 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 homepage = "https://github.com/alkaline-ml/pmdarima"; 66 changelog = "https://github.com/alkaline-ml/pmdarima/releases/tag/v${version}"; 67 - license = licenses.mit; 68 - maintainers = with maintainers; [ mbalatsko ]; 69 }; 70 }
··· 14 pythonOlder, 15 python, 16 pytest7CheckHook, 17 + setuptools, 18 }: 19 20 buildPythonPackage rec { 21 pname = "pmdarima"; 22 version = "2.0.4"; 23 + pyproject = true; 24 25 disabled = pythonOlder "3.7"; 26 27 src = fetchFromGitHub { 28 owner = "alkaline-ml"; 29 repo = "pmdarima"; 30 + tag = "v${version}"; 31 hash = "sha256-LHwPgQRB/vP3hBM8nqafoCrN3ZSRIMWLzqTqDOETOEc="; 32 }; 33 34 + postPatch = '' 35 + substituteInPlace pyproject.toml \ 36 + --replace-fail "numpy==" "numpy>=" \ 37 + --replace-fail "scipy==" "scipy>=" \ 38 + --replace-fail "statsmodels==" "statsmodels>=" 39 + ''; 40 + 41 + env = { 42 + GITHUB_REF = "refs/tags/v${version}"; 43 + }; 44 + 45 + preBuild = '' 46 + python build_tools/get_tag.py 47 + ''; 48 + 49 nativeBuildInputs = [ cython ]; 50 51 + build-system = [ 52 + setuptools 53 + ]; 54 + 55 + dependencies = [ 56 joblib 57 numpy 58 pandas ··· 80 81 pythonImportsCheck = [ "pmdarima" ]; 82 83 + meta = { 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"; 85 homepage = "https://github.com/alkaline-ml/pmdarima"; 86 changelog = "https://github.com/alkaline-ml/pmdarima/releases/tag/v${version}"; 87 + license = lib.licenses.mit; 88 + maintainers = with lib.maintainers; [ mbalatsko ]; 89 }; 90 }