about summary refs log tree commit diff
path: root/pkgs/development/python-modules/fastpair/default.nix
blob: 57be00cb91bfc8acc1d48280870b6e4fd2f7c9a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, scipy
, pythonOlder
}:

buildPythonPackage {
  pname = "fastpair";
  version = "unstable-2021-05-19";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "carsonfarmer";
    repo = "fastpair";
    rev = "d3170fd7e4d6e95312e7e1cb02e84077a3f06379";
    hash = "sha256-vSb6o0XvHlzev2+uQKUI66wM39ZNqDsppEc8rlB+H9E=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace '"pytest-runner",' ""
  '';

  nativeCheckInputs = [
    pytestCheckHook
  ];

  propagatedBuildInputs = [
    scipy
  ];

  meta = with lib; {
    description = "Data-structure for the dynamic closest-pair problem";
    homepage = "https://github.com/carsonfarmer/fastpair";
    license = licenses.mit;
    maintainers = with maintainers; [ cmcdragonkai rakesh4g ];
  };
}