mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python39Packages.spglib: execute tests
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user