python3Packages.phonopy: 3.4.0 -> 3.5.1
Diff: https://github.com/phonopy/phonopy/compare/v3.4.0...v3.5.1 Changelog: http://phonopy.github.io/phonopy/changelog.html
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
@@ -24,14 +25,15 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "phonopy";
|
||||
version = "3.4.0";
|
||||
version = "3.5.1";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "phonopy";
|
||||
repo = "phonopy";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-pCBCZzVSthExY6NhmQKyGj7aFgvHLyztUToYGL4Y3Jo=";
|
||||
hash = "sha256-P5anv0bg+L5dUdmZBECPNLa1AzjB782s8IfZCun7pN4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -61,6 +63,11 @@ buildPythonPackage (finalAttrs: {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
# Prevents 'Fatal Python error: Aborted' on darwin during checkPhase
|
||||
MPLBACKEND = "Agg";
|
||||
};
|
||||
|
||||
# prevent pytest from importing local directory
|
||||
preCheck = ''
|
||||
rm -r phonopy
|
||||
|
||||
Reference in New Issue
Block a user