Unverified Commit 69214562 authored by nicoo's avatar nicoo Committed by GitHub
Browse files

Merge #324867: mypy 1.10.0 → 1.10.1

parents 59551032 7c925eb4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -24,7 +24,8 @@ python3.pkgs.buildPythonApplication rec {
      --replace '"schema-salad >= 8.4.20230426093816, < 9",' "" \
      --replace "PYTEST_RUNNER + " ""
    substituteInPlace pyproject.toml \
      --replace "ruamel.yaml>=0.16.0,<0.18" "ruamel.yaml"
      --replace "ruamel.yaml>=0.16.0,<0.18" "ruamel.yaml" \
      --replace "mypy==1.10.0" "mypy==1.10.*"
  '';

  nativeBuildInputs = [
+6 −2
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  gitUpdater,
  pythonAtLeast,
  pythonOlder,

@@ -31,7 +32,7 @@

buildPythonPackage rec {
  pname = "mypy";
  version = "1.10.0";
  version = "1.10.1";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -40,7 +41,10 @@ buildPythonPackage rec {
    owner = "python";
    repo = "mypy";
    rev = "refs/tags/v${version}";
    hash = "sha256-NCnc4C/YFKHN/kT7RTFCYs/yC00Kt1E7mWCoQuUjxG8=";
    hash = "sha256-joV+elRaAICNQHkYuYtTDjvOUkHPsRkG1OLRvdxeIHc=";
  };
  passthru.updateScript = gitUpdater {
    rev-prefix = "v";
  };

  build-system = [
+6 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  buildPythonPackage,
  cachecontrol,
  fetchFromGitHub,
  fetchpatch,
  importlib-resources,
  mistune,
  mypy,
@@ -56,6 +57,11 @@ buildPythonPackage rec {
    ++ cachecontrol.optional-dependencies.filecache
    ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];

  patches = [ (fetchpatch {
    url = "https://patch-diff.githubusercontent.com/raw/common-workflow-language/schema_salad/pull/840.patch";
    hash = "sha256-fke75FCCn23LAMJ5bDWJpuBR6E9XIpjmzzXSbjqpxn8=";
  } ) ];

  nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pycodegen;

  preCheck = ''