python312Packages.{sumo,numericalunits}: fix build (#382481)

authored by

Sandro and committed by
GitHub
421be36d f0295845

+51 -32
+24 -11
pkgs/development/python-modules/numericalunits/default.nix
··· 1 { 2 lib, 3 buildPythonPackage, 4 - fetchPypi, 5 - isPy3k, 6 }: 7 8 buildPythonPackage rec { 9 - version = "1.26"; 10 - format = "setuptools"; 11 pname = "numericalunits"; 12 13 - src = fetchPypi { 14 - inherit pname version; 15 - sha256 = "sha256-igtplF3WXqz27vjIaLzTKY10OfWIL1B7tgYOwgxyPhI="; 16 }; 17 18 - disabled = !isPy3k; 19 20 - meta = with lib; { 21 homepage = "http://pypi.python.org/pypi/numericalunits"; 22 description = "Package that lets you define quantities with unit"; 23 - license = licenses.mit; 24 - maintainers = [ ]; 25 }; 26 }
··· 1 { 2 lib, 3 buildPythonPackage, 4 + fetchFromGitHub, 5 + setuptools, 6 + pytestCheckHook, 7 }: 8 9 buildPythonPackage rec { 10 pname = "numericalunits"; 11 + version = "1.26"; 12 + pyproject = true; 13 14 + src = fetchFromGitHub { 15 + owner = "sbyrnes321"; 16 + repo = "numericalunits"; 17 + tag = "numericalunits-${version}"; 18 + hash = "sha256-vPB1r+j+p9n+YLnBjHuk2t+QSr+adEOjyC45QSbeb4M="; 19 }; 20 21 + build-system = [ 22 + setuptools 23 + ]; 24 + 25 + nativeCheckInputs = [ 26 + pytestCheckHook 27 + ]; 28 + 29 + pytestFlagsArray = [ 30 + "tests/tests.py" 31 + ]; 32 33 + meta = { 34 homepage = "http://pypi.python.org/pypi/numericalunits"; 35 description = "Package that lets you define quantities with unit"; 36 + license = lib.licenses.mit; 37 + maintainers = with lib.maintainers; [ nickcao ]; 38 }; 39 }
+27 -21
pkgs/development/python-modules/sumo/default.nix
··· 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 - cython, 7 - h5py, 8 - matplotlib, 9 numpy, 10 - phonopy, 11 pymatgen, 12 - scipy, 13 seekpath, 14 - spglib, 15 castepxbin, 16 pytestCheckHook, 17 - colormath, 18 }: 19 20 buildPythonPackage rec { 21 pname = "sumo"; 22 version = "2.3.10"; 23 - format = "setuptools"; 24 25 disabled = pythonOlder "3.8"; 26 ··· 31 hash = "sha256-WoOW+JPo5x9V6LN+e8Vf3Q3ohHhQVK81s0Qk7oPn1Tk="; 32 }; 33 34 - nativeBuildInputs = [ cython ]; 35 36 - propagatedBuildInputs = [ 37 - castepxbin 38 - colormath 39 - h5py 40 - matplotlib 41 numpy 42 - phonopy 43 - pymatgen 44 scipy 45 seekpath 46 - spglib 47 ]; 48 49 - nativeCheckInputs = [ pytestCheckHook ]; 50 51 pythonImportsCheck = [ "sumo" ]; 52 53 - meta = with lib; { 54 description = "Toolkit for plotting and analysis of ab initio solid-state calculation data"; 55 homepage = "https://github.com/SMTG-UCL/sumo"; 56 changelog = "https://github.com/SMTG-Bham/sumo/releases/tag/v${version}"; 57 - license = licenses.mit; 58 - maintainers = with maintainers; [ psyanticy ]; 59 }; 60 }
··· 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 + setuptools, 7 + spglib, 8 numpy, 9 + scipy, 10 + h5py, 11 pymatgen, 12 + phonopy, 13 + matplotlib, 14 seekpath, 15 castepxbin, 16 + colormath, 17 + importlib-resources, 18 pytestCheckHook, 19 }: 20 21 buildPythonPackage rec { 22 pname = "sumo"; 23 version = "2.3.10"; 24 + pyproject = true; 25 26 disabled = pythonOlder "3.8"; 27 ··· 32 hash = "sha256-WoOW+JPo5x9V6LN+e8Vf3Q3ohHhQVK81s0Qk7oPn1Tk="; 33 }; 34 35 + build-system = [ 36 + setuptools 37 + ]; 38 39 + dependencies = [ 40 + spglib 41 numpy 42 scipy 43 + h5py 44 + pymatgen 45 + phonopy 46 + matplotlib 47 seekpath 48 + castepxbin 49 + colormath 50 + importlib-resources 51 ]; 52 53 + nativeCheckInputs = [ 54 + pytestCheckHook 55 + ]; 56 57 pythonImportsCheck = [ "sumo" ]; 58 59 + meta = { 60 description = "Toolkit for plotting and analysis of ab initio solid-state calculation data"; 61 homepage = "https://github.com/SMTG-UCL/sumo"; 62 changelog = "https://github.com/SMTG-Bham/sumo/releases/tag/v${version}"; 63 + license = lib.licenses.mit; 64 + maintainers = with lib.maintainers; [ psyanticy ]; 65 }; 66 }