Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / fastpair / default.nix
blob57be00cb91bfc8acc1d48280870b6e4fd2f7c9a5
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , scipy
6 , pythonOlder
7 }:
9 buildPythonPackage {
10   pname = "fastpair";
11   version = "unstable-2021-05-19";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "carsonfarmer";
18     repo = "fastpair";
19     rev = "d3170fd7e4d6e95312e7e1cb02e84077a3f06379";
20     hash = "sha256-vSb6o0XvHlzev2+uQKUI66wM39ZNqDsppEc8rlB+H9E=";
21   };
23   postPatch = ''
24     substituteInPlace setup.py \
25       --replace '"pytest-runner",' ""
26   '';
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   propagatedBuildInputs = [
33     scipy
34   ];
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   };