1{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy }: 2 3buildPythonPackage { 4 pname = "fastpair"; 5 version = "2016-07-05"; 6 7 src = fetchFromGitHub { 8 owner = "carsonfarmer"; 9 repo = "fastpair"; 10 rev = "92364962f6b695661f35a117bf11f96584128a8d"; 11 sha256 = "1pv9sxycxdk567s5gs947rhlqngrb9nn9yh4dhdvg1ix1i8dca71"; 12 }; 13 14 buildInputs = [ pytestrunner ]; 15 16 checkInputs = [ pytest ]; 17 18 propagatedBuildInputs = [ 19 scipy 20 ]; 21 22 checkPhase = '' 23 py.test fastpair 24 ''; 25 26 meta = with stdenv.lib; { 27 homepage = https://github.com/carsonfarmer/fastpair; 28 description = "Data-structure for the dynamic closest-pair problem"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ cmcdragonkai ]; 31 }; 32}