diff --git a/pkgs/development/python-modules/dtw-python/default.nix b/pkgs/development/python-modules/dtw-python/default.nix index 6bdadfac010d..9a6640ddc396 100644 --- a/pkgs/development/python-modules/dtw-python/default.nix +++ b/pkgs/development/python-modules/dtw-python/default.nix @@ -9,31 +9,28 @@ scipy, numpy, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { pname = "dtw-python"; - version = "1.5.3"; - format = "pyproject"; - - disabled = pythonOlder "3.6"; + version = "1.7.2"; + pyproject = true; src = fetchFromGitHub { owner = "DynamicTimeWarping"; repo = "dtw-python"; tag = "v${version}"; - hash = "sha256-Q2TffroAGS6DeU5hUE/M2Luuxa5VfU+wxbGdfhcioSA="; + hash = "sha256-DaYqKvjbp2yjL0a5f+vkB4OFOCWqt+f1HUUfarbns3A="; }; - nativeBuildInputs = [ + build-system = [ cython oldest-supported-numpy setuptools wheel ]; - propagatedBuildInputs = [ + dependencies = [ scipy numpy ]; @@ -44,16 +41,17 @@ buildPythonPackage rec { appendToVar enabledTestPaths "$src/tests" cd $out ''; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "dtw" ]; meta = with lib; { description = "Python port of R's Comprehensive Dynamic Time Warp algorithms package"; - mainProgram = "dtw"; homepage = "https://github.com/DynamicTimeWarping/dtw-python"; - changelog = "https://github.com/DynamicTimeWarping/dtw-python/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/DynamicTimeWarping/dtw-python/blob/${src.tag}/CHANGELOG.md"; license = licenses.gpl3Only; maintainers = with maintainers; [ mbalatsko ]; + mainProgram = "dtw"; }; }