diff --git a/pkgs/development/python-modules/pyfma/default.nix b/pkgs/development/python-modules/pyfma/default.nix index eda9dc5796a..405098113ac 100644 --- a/pkgs/development/python-modules/pyfma/default.nix +++ b/pkgs/development/python-modules/pyfma/default.nix @@ -1,15 +1,19 @@ { lib , buildPythonPackage +, isPy27 , fetchPypi , pybind11 +, exdown , numpy -, pytest +, pytestCheckHook }: buildPythonPackage rec { pname = "pyfma"; version = "0.1.2"; + disabled = isPy27; + src = fetchPypi { inherit pname version; sha256 = "3a9e2503fd01baa4978af5f491b79b7646d7872df9ecc7ab63ba10c250c50d8a"; @@ -20,17 +24,12 @@ buildPythonPackage rec { ]; checkInputs = [ + exdown numpy - pytest + pytestCheckHook ]; - preBuild = '' - export HOME=$(mktemp -d) - ''; - - checkPhase = '' - pytest test - ''; + pythonImportsCheck = [ "pyfma" ]; meta = with lib; { description = "Fused multiply-add for Python";