1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, cython 6, oldest-supported-numpy 7, packaging 8, setuptools 9, setuptools-scm 10, wheel 11, numpy 12, pytestCheckHook 13}: 14 15buildPythonPackage rec { 16 pname = "pyemd"; 17 version = "1.0.0"; 18 19 disabled = pythonOlder "3.7"; 20 21 format = "pyproject"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-tCta57LRWx1N7mOBDqeYo5IX6Kdre0nA62OoTg/ZAP4="; 26 }; 27 28 nativeBuildInputs = [ 29 cython 30 numpy 31 oldest-supported-numpy 32 packaging 33 setuptools 34 setuptools-scm 35 wheel 36 ]; 37 38 propagatedBuildInputs = [ 39 numpy 40 ]; 41 42 nativeCheckInputs = [ 43 pytestCheckHook 44 ]; 45 46 meta = with lib; { 47 description = "A Python wrapper for Ofir Pele and Michael Werman's implementation of the Earth Mover's Distance"; 48 homepage = "https://github.com/wmayner/pyemd"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ rvl ]; 51 }; 52}