Commit d05a5490 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.yapf: refactor

parent 27851edc
Loading
Loading
Loading
Loading
+5 −11
Original line number Diff line number Diff line
{ 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
  ];