1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, scipy
6, pythonOlder
7}:
8
9buildPythonPackage {
10 pname = "fastpair";
11 version = "unstable-2021-05-19";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "carsonfarmer";
18 repo = "fastpair";
19 rev = "d3170fd7e4d6e95312e7e1cb02e84077a3f06379";
20 hash = "sha256-vSb6o0XvHlzev2+uQKUI66wM39ZNqDsppEc8rlB+H9E=";
21 };
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace '"pytest-runner",' ""
26 '';
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 ];
31
32 propagatedBuildInputs = [
33 scipy
34 ];
35
36 meta = with lib; {
37 description = "Data-structure for the dynamic closest-pair problem";
38 homepage = "https://github.com/carsonfarmer/fastpair";
39 license = licenses.mit;
40 maintainers = with maintainers; [ cmcdragonkai rakesh4g ];
41 };
42}