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