From 0f70e78d377954c689f13e6f14047cf9c1ed9596 Mon Sep 17 00:00:00 2001 From: Roger Qiu Date: Wed, 1 Aug 2018 08:05:21 +1000 Subject: [PATCH] pythonPackages.fastpair: init at 2016-07-05 (#43722) --- .../python-modules/fastpair/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/fastpair/default.nix diff --git a/pkgs/development/python-modules/fastpair/default.nix b/pkgs/development/python-modules/fastpair/default.nix new file mode 100644 index 00000000000..f065bc6ac77 --- /dev/null +++ b/pkgs/development/python-modules/fastpair/default.nix @@ -0,0 +1,32 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy }: + +buildPythonPackage { + pname = "fastpair"; + version = "2016-07-05"; + + src = fetchFromGitHub { + owner = "carsonfarmer"; + repo = "fastpair"; + rev = "92364962f6b695661f35a117bf11f96584128a8d"; + sha256 = "1pv9sxycxdk567s5gs947rhlqngrb9nn9yh4dhdvg1ix1i8dca71"; + }; + + buildInputs = [ pytestrunner ]; + + checkInputs = [ pytest ]; + + propagatedBuildInputs = [ + scipy + ]; + + checkPhase = '' + py.test fastpair + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/carsonfarmer/fastpair; + description = "Data-structure for the dynamic closest-pair problem"; + license = licenses.mit; + maintainers = with maintainers; [ cmcdragonkai ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 285cdaf991b..30bdeebc755 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5289,6 +5289,8 @@ in { fastimport = callPackage ../development/python-modules/fastimport { }; + fastpair = callPackage ../development/python-modules/fastpair { }; + fastrlock = callPackage ../development/python-modules/fastrlock {}; feedgen = callPackage ../development/python-modules/feedgen { };