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