lol

python312Packages.pmdarima: fix build

wxt d158f4ba 844e9777

+26 -6
+26 -6
pkgs/development/python-modules/pmdarima/default.nix
··· 14 14 pythonOlder, 15 15 python, 16 16 pytest7CheckHook, 17 + setuptools, 17 18 }: 18 19 19 20 buildPythonPackage rec { 20 21 pname = "pmdarima"; 21 22 version = "2.0.4"; 22 - format = "setuptools"; 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 - rev = "refs/tags/v${version}"; 30 + tag = "v${version}"; 30 31 hash = "sha256-LHwPgQRB/vP3hBM8nqafoCrN3ZSRIMWLzqTqDOETOEc="; 31 32 }; 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 + 33 49 nativeBuildInputs = [ cython ]; 34 50 35 - propagatedBuildInputs = [ 51 + build-system = [ 52 + setuptools 53 + ]; 54 + 55 + dependencies = [ 36 56 joblib 37 57 numpy 38 58 pandas ··· 60 80 61 81 pythonImportsCheck = [ "pmdarima" ]; 62 82 63 - meta = with lib; { 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 - license = licenses.mit; 68 - maintainers = with maintainers; [ mbalatsko ]; 87 + license = lib.licenses.mit; 88 + maintainers = with lib.maintainers; [ mbalatsko ]; 69 89 }; 70 90 }