Commit 1508c103 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.griffe: 0.22.2 -> 0.23.0

parent 15a051a5
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@

buildPythonPackage rec {
  pname = "griffe";
  version = "0.22.2";
  version = "0.23.0";
  format = "pyproject";

  disabled = pythonOlder "3.7";
@@ -20,9 +20,16 @@ buildPythonPackage rec {
    owner = "mkdocstrings";
    repo = pname;
    rev = version;
    hash = "sha256-mkYtfO+wZ4vIdpCzum9uwoKMv1Xn0few8ywbvrEwxj8=";
    hash = "sha256-eoWOkAwAd3ab9+uUfAdrYhkheibfGYkuoNQX/3nS57w=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'dynamic = ["version"]' 'version = "${version}"' \
      --replace 'license = "ISC"' 'license = {file = "LICENSE"}' \
      --replace 'version = {source = "scm"}' 'license-expression = "ISC"'
  '';

  nativeBuildInputs = [
    pdm-pep517
  ];
@@ -42,11 +49,6 @@ buildPythonPackage rec {
    ];
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'dynamic = ["version"]' 'version = "${version}"'
  '';

  pythonImportsCheck = [
    "griffe"
  ];