Unverified Commit db54ac3d authored by Matt Sturgeon's avatar Matt Sturgeon Committed by GitHub
Browse files

treewide: move python packages I maintain to finalAttrs (#476981)

parents a8b47f91 054cdd5f
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  installShellFiles,
}:

python3Packages.buildPythonPackage rec {
python3Packages.buildPythonPackage (finalAttrs: {
  pname = "autotrash";
  version = "0.4.7";
  pyproject = true;
@@ -14,13 +14,13 @@ python3Packages.buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "bneijt";
    repo = "autotrash";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-qMU3jjBL5+fd9vKX5BIqES5AM8D/54aBOmdHFiBtfEo=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'version = "0.0.0"' 'version = "${version}"'
      --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"'
  '';

  build-system = [ python3Packages.poetry-core ];
@@ -41,11 +41,11 @@ python3Packages.buildPythonPackage rec {
    description = "Tool to automatically purge old trashed files";
    license = lib.licenses.gpl3Plus;
    homepage = "https://bneijt.nl/pr/autotrash";
    changelog = "https://github.com/bneijt/autotrash/releases/tag/${version}";
    changelog = "https://github.com/bneijt/autotrash/releases/tag/${finalAttrs.src.tag}";
    maintainers = with lib.maintainers; [
      sigmanificient
      mithicspirit
    ];
    mainProgram = "autotrash";
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
  fetchurl,
}:

python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
  pname = "cavalcade";
  version = "0.8";
  pyproject = true;
@@ -20,7 +20,7 @@ python3Packages.buildPythonApplication rec {
  src = fetchFromGitHub {
    owner = "worron";
    repo = "cavalcade";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-VyWOPNidN0+pfuxsgPWq6lI5gXQsiRpmYjQYjZW6i9w=";
  };

@@ -71,4 +71,4 @@ python3Packages.buildPythonApplication rec {
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
  fetchPypi,
}:

python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
  pname = "cbeams";
  version = "1.0.3";
  pyproject = true;
@@ -12,7 +12,7 @@ python3Packages.buildPythonApplication rec {
  disabled = !python3Packages.isPy3k;

  src = fetchPypi {
    inherit pname version;
    inherit (finalAttrs) pname version;
    hash = "sha256-8Q2sWsAc39Mu34K1wWOKOJERKzBStE4GmtuzOs2T7Kk=";
  };

@@ -41,4 +41,4 @@ python3Packages.buildPythonApplication rec {
      sigmanificient
    ];
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
  python3Packages,
}:

python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
  pname = "compiledb";
  version = "0.10.7";
  pyproject = true;
@@ -13,7 +13,7 @@ python3Packages.buildPythonApplication rec {
  src = fetchFromGitHub {
    owner = "nickdiego";
    repo = "compiledb";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-toqBf5q1EfZVhZN5DAtxkyFF7UlyNbqxWAIWFMwacxw=";
  };

@@ -44,4 +44,4 @@ python3Packages.buildPythonApplication rec {
    homepage = "https://github.com/nickdiego/compiledb";
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  diagrams-as-code,
}:

python3Packages.buildPythonPackage rec {
python3Packages.buildPythonPackage (finalAttrs: {
  pname = "diagrams-as-code";
  version = "0.0.4";
  pyproject = true;
@@ -14,7 +14,7 @@ python3Packages.buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "dmytrostriletskyi";
    repo = "diagrams-as-code";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-cd602eQvNCUQuCdn/RpcfURcDHjXLZ0gAG+SObB++Q0=";
  };

@@ -55,4 +55,4 @@ python3Packages.buildPythonPackage rec {
    maintainers = with lib.maintainers; [ sigmanificient ];
    mainProgram = "diagrams-as-code";
  };
}
})
Loading