diff --git a/pkgs/development/python-modules/transforms3d/default.nix b/pkgs/development/python-modules/transforms3d/default.nix index 549ad85c78e9..6bab6a5148b5 100644 --- a/pkgs/development/python-modules/transforms3d/default.nix +++ b/pkgs/development/python-modules/transforms3d/default.nix @@ -1,8 +1,8 @@ { lib , buildPythonPackage , fetchFromGitHub -, isPy27 -, pytest +, pythonOlder +, pytestCheckHook , numpy , scipy , sympy @@ -10,22 +10,22 @@ buildPythonPackage rec { pname = "transforms3d"; - version = "unstable-2019-12-17"; + version = "0.4.1"; + format = "setuptools"; - disabled = isPy27; + disabled = pythonOlder "3.7"; - # no Git tag or PyPI release in some time src = fetchFromGitHub { owner = "matthew-brett"; repo = pname; - rev = "6b20250c610249914ca5e3a3a2964c36ca35c19a"; - sha256 = "1z789hgk71a6rj6mqp9srpzamg06g58hs2p1l1p344cfnkj5a4kc"; + rev = "refs/tags/${version}"; + hash = "sha256-GgnjvwAfyxnDfBGvgMFIPPbR88BWFiNGrScVORygq94="; }; propagatedBuildInputs = [ numpy sympy ]; - nativeCheckInputs = [ pytest scipy ]; - checkPhase = "pytest transforms3d"; + nativeCheckInputs = [ pytestCheckHook scipy ]; + pythonImportsCheck = [ "transforms3d" ]; meta = with lib; { homepage = "https://matthew-brett.github.io/transforms3d";