diff --git a/pkgs/development/python-modules/yapf/default.nix b/pkgs/development/python-modules/yapf/default.nix index 01b84b2f3dc2..99ae032a2861 100644 --- a/pkgs/development/python-modules/yapf/default.nix +++ b/pkgs/development/python-modules/yapf/default.nix @@ -1,16 +1,11 @@ { lib , buildPythonPackage , fetchPypi - -# build-system , setuptools - -# dependencies , importlib-metadata , platformdirs , tomli - -# tests +, pythonOlder , pytestCheckHook }: @@ -19,24 +14,23 @@ buildPythonPackage rec { version = "0.40.2"; pyproject = true; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; hash = "sha256-TauKXtcTTibVfBZHx0g6+z8TaHi1eQYreGyboWuUY3s="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ importlib-metadata platformdirs tomli ]; - # nose is unavailable on pypy - #doCheck = !isPyPy; - nativeCheckInputs = [ pytestCheckHook ];