Merge pull request #96501 from jonringer/fix-phonopy
python3Packages.phonopy: fix build and tests
This commit is contained in:
commit
55e8cbd263
1 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, buildPythonPackage, python, fetchPypi, numpy, pyyaml, matplotlib, h5py }:
|
||||
{ stdenv, buildPythonPackage, python, fetchPypi, numpy, pyyaml, matplotlib, h5py, spglib, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "phonopy";
|
||||
|
@ -9,15 +9,15 @@ buildPythonPackage rec {
|
|||
sha256 = "482c6ff29c058d091ac885e561e28ba3e516ea9e91c44a951cad11f3ae19856c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy pyyaml matplotlib h5py ];
|
||||
propagatedBuildInputs = [ numpy pyyaml matplotlib h5py spglib ];
|
||||
|
||||
checkPhase = ''
|
||||
cd test
|
||||
# dynamic structure factor test ocassionally fails do to roundoff
|
||||
# see issue https://github.com/atztogo/phonopy/issues/79
|
||||
rm spectrum/test_dynamic_structure_factor.py
|
||||
${python.interpreter} -m unittest discover -b
|
||||
cd ../..
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
# flakey due to floating point inaccuracy
|
||||
disabledTests = [ "test_NaCl" ];
|
||||
|
||||
# prevent pytest from importing local directory
|
||||
preCheck = ''
|
||||
rm -r phonopy
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue