python3Packages.fastdiff: Pass py into checkInputs,

reformat and disable benchmarks during check phase.
This commit is contained in:
Martin Weinelt 2022-12-31 15:12:27 +01:00
parent 2227593660
commit 32461c69ea

View file

@ -1,4 +1,13 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, wasmer, wasmer-compiler-cranelift, pytestCheckHook, pytest-benchmark }:
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, wasmer
, wasmer-compiler-cranelift
, py
, pytestCheckHook
, pytest-benchmark
}:
buildPythonPackage rec {
pname = "fastdiff";
@ -16,11 +25,24 @@ buildPythonPackage rec {
--replace "collect_ignore = ['setup.py']" ""
'';
propagatedBuildInputs = [ wasmer wasmer-compiler-cranelift ];
propagatedBuildInputs = [
wasmer
wasmer-compiler-cranelift
];
checkInputs = [ pytestCheckHook pytest-benchmark ];
checkInputs = [
py
pytestCheckHook
pytest-benchmark
];
pythonImportsCheck = [ "fastdiff" ];
pytestFlagsArray = [
"--benchmark-skip"
];
pythonImportsCheck = [
"fastdiff"
];
meta = with lib; {
description = "A fast native implementation of diff algorithm with a pure Python fallback";