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