python3Packages.fastdiff: Pass py into checkInputs,
reformat and disable benchmarks during check phase.
This commit is contained in:
parent
2227593660
commit
32461c69ea
|
@ -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 {
|
buildPythonPackage rec {
|
||||||
pname = "fastdiff";
|
pname = "fastdiff";
|
||||||
|
@ -16,11 +25,24 @@ buildPythonPackage rec {
|
||||||
--replace "collect_ignore = ['setup.py']" ""
|
--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; {
|
meta = with lib; {
|
||||||
description = "A fast native implementation of diff algorithm with a pure Python fallback";
|
description = "A fast native implementation of diff algorithm with a pure Python fallback";
|
||||||
|
|
Loading…
Reference in a new issue