2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
cython,
|
|
|
|
oldest-supported-numpy,
|
|
|
|
packaging,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
wheel,
|
|
|
|
numpy,
|
|
|
|
pytestCheckHook,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyemd";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.0.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-tCta57LRWx1N7mOBDqeYo5IX6Kdre0nA62OoTg/ZAP4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
2023-08-22 20:05:09 +00:00
|
|
|
numpy
|
|
|
|
oldest-supported-numpy
|
2023-08-04 22:07:22 +00:00
|
|
|
packaging
|
|
|
|
setuptools
|
2023-08-22 20:05:09 +00:00
|
|
|
setuptools-scm
|
|
|
|
wheel
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python wrapper for Ofir Pele and Michael Werman's implementation of the Earth Mover's Distance";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/wmayner/pyemd";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|