python39Packages.spglib: execute tests

This commit is contained in:
Mario Rodas
2022-05-06 04:20:00 +00:00
parent 908fd5ac2e
commit 0446cf377a

View File

@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, numpy, nose, pyyaml }:
{ lib, buildPythonPackage, fetchPypi, numpy, pytest, pyyaml }:
buildPythonPackage rec {
pname = "spglib";
@@ -11,7 +11,15 @@ buildPythonPackage rec {
propagatedBuildInputs = [ numpy ];
checkInputs = [ nose pyyaml ];
checkInputs = [ pytest pyyaml ];
# pytestCheckHook doesn't work
# ImportError: cannot import name '_spglib' from partially initialized module 'spglib'
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "spglib" ];
meta = with lib; {
description = "Python bindings for C library for finding and handling crystal symmetries";