lol

python312Packages.ezyrb: cleanup, fix build

+29 -10
+29 -10
pkgs/development/python-modules/ezyrb/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 - pythonOlder, 5 + 6 + # build-system 7 + setuptools, 8 + 9 + # dependencies 6 10 future, 7 11 numpy, 8 12 scipy, 9 13 matplotlib, 10 14 scikit-learn, 11 15 torch, 16 + 17 + # tests 12 18 pytestCheckHook, 13 19 }: 14 20 15 21 buildPythonPackage rec { 16 22 pname = "ezyrb"; 17 23 version = "1.3.0.post2404"; 18 - format = "setuptools"; 19 - 20 - disabled = pythonOlder "3.7"; 24 + pyproject = true; 21 25 22 26 src = fetchFromGitHub { 23 27 owner = "mathLab"; ··· 26 30 hash = "sha256-nu75Geyeu1nTLoGaohXB9pmbUWKgdgch9Z5OJqz9xKQ="; 27 31 }; 28 32 29 - propagatedBuildInputs = [ 33 + # AttributeError: module 'numpy' has no attribute 'VisibleDeprecationWarning' 34 + postPatch = '' 35 + substituteInPlace \ 36 + tests/test_k_neighbors_regressor.py \ 37 + tests/test_linear.py \ 38 + tests/test_radius_neighbors_regressor.py \ 39 + --replace-fail \ 40 + "np.VisibleDeprecationWarning" \ 41 + "np.exceptions.VisibleDeprecationWarning" 42 + ''; 43 + 44 + build-system = [ 45 + setuptools 46 + ]; 47 + 48 + dependencies = [ 30 49 future 50 + matplotlib 31 51 numpy 52 + scikit-learn 32 53 scipy 33 - matplotlib 34 - scikit-learn 35 54 torch 36 55 ]; 37 56 ··· 44 63 "tests/test_podae.py" 45 64 ]; 46 65 47 - meta = with lib; { 66 + meta = { 48 67 description = "Easy Reduced Basis method"; 49 68 homepage = "https://mathlab.github.io/EZyRB/"; 50 69 downloadPage = "https://github.com/mathLab/EZyRB/releases"; 51 - license = licenses.mit; 52 - maintainers = with maintainers; [ yl3dy ]; 70 + license = lib.licenses.mit; 71 + maintainers = with lib.maintainers; [ yl3dy ]; 53 72 }; 54 73 }