12 buildPythonPackage rec {
15 format = "setuptools";
17 src = fetchFromGitHub {
21 sha256 = "0irc5x4ahfp7f7q4ic97qa898s2awi0vdjznahxrfjirn8b157dw";
25 # Removes outdated cythonized C++ file, which doesn't match CPython. Will be auto-used if left.
26 # Remove when PR 40 merged
28 url = "https://patch-diff.githubusercontent.com/raw/slaypni/fastdtw/pull/40.patch";
29 sha256 = "0xjma0h84bk1n32wgk99rwfc85scp187a7fykhnylmcc73ppal9q";
37 propagatedBuildInputs = [
41 pythonImportsCheck = [ "fastdtw.fastdtw" ];
42 nativeCheckInputs = [ pytestCheckHook ];
43 dontUseSetuptoolsCheck = true; # looks for pytest-runner
45 echo "Temporarily moving tests to $OUT to find cython modules"
46 export PACKAGEDIR=$out/${python.sitePackages}
47 cp -r $TMP/source/tests $PACKAGEDIR
57 description = "Python implementation of FastDTW (Dynamic Time Warping)";
59 FastDTW is an approximate Dynamic Time Warping (DTW) algorithm that provides
60 optimal or near-optimal alignments with an O(N) time and memory complexity.
62 homepage = "https://github.com/slaypni/fastdtw";
63 license = licenses.mit;
64 maintainers = with maintainers; [ drewrisinger ];