1{ stdenv, buildPythonPackage, fetchPypi, numpy, cython }: 2 3buildPythonPackage rec { 4 name = "${pname}-${version}"; 5 pname = "pyemd"; 6 version = "0.5.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "fc81c2116f8573e559dfbb8d73e03d9f73c22d0770559f406516984302e07e70"; 11 }; 12 13 propagatedBuildInputs = [ numpy ]; 14 buildInputs = [ cython ]; 15 16 meta = with stdenv.lib; { 17 description = "A Python wrapper for Ofir Pele and Michael Werman's implementation of the Earth Mover's Distance"; 18 homepage = https://github.com/wmayner/pyemd; 19 license = licenses.mit; 20 maintainers = with maintainers; [ rvl ]; 21 }; 22}