pythonPackages.fastpair : Updated version and pytest enabled
This commit is contained in:
parent
420b0fa378
commit
21c1af4d0b
|
@ -1,35 +1,28 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy }:
|
{ lib, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy, pytestCheckHook }:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
pname = "fastpair";
|
pname = "fastpair";
|
||||||
version = "2016-07-05";
|
version = "2021-05-19";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "carsonfarmer";
|
owner = "carsonfarmer";
|
||||||
repo = "fastpair";
|
repo = "fastpair";
|
||||||
rev = "92364962f6b695661f35a117bf11f96584128a8d";
|
rev = "d3170fd7e4d6e95312e7e1cb02e84077a3f06379";
|
||||||
sha256 = "1pv9sxycxdk567s5gs947rhlqngrb9nn9yh4dhdvg1ix1i8dca71";
|
sha256 = "1l8zgr8awg27lhlkpa2dsvghrb7b12jl1bkgpzg5q7pg8nizl9mx";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest pytestCheckHook ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
scipy
|
scipy
|
||||||
];
|
];
|
||||||
|
|
||||||
# Does not support pytest 4 https://github.com/carsonfarmer/fastpair/issues/14
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
pytest fastpair
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/carsonfarmer/fastpair";
|
homepage = "https://github.com/carsonfarmer/fastpair";
|
||||||
description = "Data-structure for the dynamic closest-pair problem";
|
description = "Data-structure for the dynamic closest-pair problem";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ cmcdragonkai ];
|
maintainers = with maintainers; [ cmcdragonkai rakesh4g ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue