Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 864 B view raw
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 nativeBuildInputs = [ pytestrunner ]; 15 16 checkInputs = [ pytest ]; 17 18 propagatedBuildInputs = [ 19 scipy 20 ]; 21 22 # Does not support pytest 4 https://github.com/carsonfarmer/fastpair/issues/14 23 doCheck = false; 24 25 checkPhase = '' 26 pytest fastpair 27 ''; 28 29 meta = with stdenv.lib; { 30 homepage = "https://github.com/carsonfarmer/fastpair"; 31 description = "Data-structure for the dynamic closest-pair problem"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ cmcdragonkai ]; 34 }; 35}