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