Unverified Commit 79e6c758 authored by Nick Cao's avatar Nick Cao
Browse files

python312Packages.sumo: modernize

parent c7922e78
Loading
Loading
Loading
Loading
+27 −21
Original line number Diff line number Diff line
@@ -3,24 +3,25 @@
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  cython,
  h5py,
  matplotlib,
  setuptools,
  spglib,
  numpy,
  phonopy,
  pymatgen,
  scipy,
  h5py,
  pymatgen,
  phonopy,
  matplotlib,
  seekpath,
  spglib,
  castepxbin,
  pytestCheckHook,
  colormath,
  importlib-resources,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "sumo";
  version = "2.3.10";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.8";

@@ -31,30 +32,35 @@ buildPythonPackage rec {
    hash = "sha256-WoOW+JPo5x9V6LN+e8Vf3Q3ohHhQVK81s0Qk7oPn1Tk=";
  };

  nativeBuildInputs = [ cython ];
  build-system = [
    setuptools
  ];

  propagatedBuildInputs = [
    castepxbin
    colormath
    h5py
    matplotlib
  dependencies = [
    spglib
    numpy
    phonopy
    pymatgen
    scipy
    h5py
    pymatgen
    phonopy
    matplotlib
    seekpath
    spglib
    castepxbin
    colormath
    importlib-resources
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "sumo" ];

  meta = with lib; {
  meta = {
    description = "Toolkit for plotting and analysis of ab initio solid-state calculation data";
    homepage = "https://github.com/SMTG-UCL/sumo";
    changelog = "https://github.com/SMTG-Bham/sumo/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ psyanticy ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ psyanticy ];
  };
}