python312Packages.{sumo,numericalunits}: fix build (#382481)
This commit is contained in:
@@ -1,26 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
isPy3k,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.26";
|
||||
format = "setuptools";
|
||||
pname = "numericalunits";
|
||||
version = "1.26";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-igtplF3WXqz27vjIaLzTKY10OfWIL1B7tgYOwgxyPhI=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "sbyrnes321";
|
||||
repo = "numericalunits";
|
||||
tag = "numericalunits-${version}";
|
||||
hash = "sha256-vPB1r+j+p9n+YLnBjHuk2t+QSr+adEOjyC45QSbeb4M=";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests/tests.py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "http://pypi.python.org/pypi/numericalunits";
|
||||
description = "Package that lets you define quantities with unit";
|
||||
license = licenses.mit;
|
||||
maintainers = [ ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ nickcao ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,24 +3,25 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
cython,
|
||||
h5py,
|
||||
matplotlib,
|
||||
numpy,
|
||||
phonopy,
|
||||
pymatgen,
|
||||
scipy,
|
||||
seekpath,
|
||||
setuptools,
|
||||
spglib,
|
||||
numpy,
|
||||
scipy,
|
||||
h5py,
|
||||
pymatgen,
|
||||
phonopy,
|
||||
matplotlib,
|
||||
seekpath,
|
||||
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 ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
castepxbin
|
||||
colormath
|
||||
h5py
|
||||
matplotlib
|
||||
numpy
|
||||
phonopy
|
||||
pymatgen
|
||||
scipy
|
||||
seekpath
|
||||
spglib
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
dependencies = [
|
||||
spglib
|
||||
numpy
|
||||
scipy
|
||||
h5py
|
||||
pymatgen
|
||||
phonopy
|
||||
matplotlib
|
||||
seekpath
|
||||
castepxbin
|
||||
colormath
|
||||
importlib-resources
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user