diff options
Diffstat (limited to 'pkgs/development/python-modules/yapf/default.nix')
-rw-r--r-- | pkgs/development/python-modules/yapf/default.nix | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/pkgs/development/python-modules/yapf/default.nix b/pkgs/development/python-modules/yapf/default.nix index 01b84b2f3dc21..38e62c57eef81 100644 --- a/pkgs/development/python-modules/yapf/default.nix +++ b/pkgs/development/python-modules/yapf/default.nix @@ -1,17 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi - -# build-system -, setuptools - -# dependencies -, importlib-metadata -, platformdirs -, tomli - -# tests -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + importlib-metadata, + platformdirs, + tomli, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,27 +15,22 @@ buildPythonPackage rec { version = "0.40.2"; pyproject = true; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; hash = "sha256-TauKXtcTTibVfBZHx0g6+z8TaHi1eQYreGyboWuUY3s="; }; - nativeBuildInputs = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ importlib-metadata platformdirs tomli ]; - # nose is unavailable on pypy - #doCheck = !isPyPy; - - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { changelog = "https://github.com/google/yapf/blob/v${version}/CHANGELOG.md"; @@ -67,6 +58,9 @@ buildPythonPackage rec { ''; license = lib.licenses.asl20; mainProgram = "yapf"; - maintainers = with lib.maintainers; [ AndersonTorres siddharthist ]; + maintainers = with lib.maintainers; [ + AndersonTorres + siddharthist + ]; }; } |