Unverified Commit 49617e1e authored by PerchunPak's avatar PerchunPak
Browse files

python3Packages: migrate all my packages to use finalAttrs

parent 07006cb8
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  aiohttp,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "apykuma";
  version = "1.2.0";
  pyproject = true;
@@ -14,7 +14,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "PerchunPak";
    repo = "apykuma";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Dxlyi0syoq+sfgjMLWHhpeKhDFgpfQrp18DJeBjrAEg=";
  };

@@ -36,8 +36,8 @@ buildPythonPackage rec {
  meta = {
    description = "Small library to notify Uptime Kuma that the service is up";
    homepage = "https://github.com/PerchunPak/apykuma";
    changelog = "https://github.com/PerchunPak/apykuma/blob/v${version}/CHANGELOG.md";
    changelog = "https://github.com/PerchunPak/apykuma/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ PerchunPak ];
  };
}
})
+5 −5
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "basedmypy";
  version = "2.10.1";
  pyproject = true;
@@ -39,7 +39,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "KotlinIsland";
    repo = "basedmypy";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-IzRKOReSgio5S5PG8iD9VQF9R1GEqBAIDeeCtq+ZVXg=";
  };

@@ -104,7 +104,7 @@ buildPythonPackage rec {
    setuptools
    tomli
  ]
  ++ lib.concatAttrValues optional-dependencies;
  ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;

  disabledTests = lib.optionals (pythonAtLeast "3.12") [
    # cannot find distutils, and distutils cannot find types
@@ -137,9 +137,9 @@ buildPythonPackage rec {
  meta = {
    description = "Based Python static type checker with baseline, sane default settings and based typing features";
    homepage = "https://kotlinisland.github.io/basedmypy/";
    changelog = "https://github.com/KotlinIsland/basedmypy/blob/${src.tag}/CHANGELOG.md";
    changelog = "https://github.com/KotlinIsland/basedmypy/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.mit;
    mainProgram = "mypy";
    maintainers = with lib.maintainers; [ PerchunPak ];
  };
}
})
+4 −4
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "basedtyping";
  version = "0.1.10";
  pyproject = true;
@@ -25,7 +25,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "KotlinIsland";
    repo = "basedtyping";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-IpIMO75jqJDzDgRPVEi6g7AprGeBeKbVH99XPDYUzTM=";
  };

@@ -52,8 +52,8 @@ buildPythonPackage rec {
  meta = {
    description = "Utilities for basedmypy";
    homepage = "https://github.com/KotlinIsland/basedtyping";
    changelog = "https://github.com/KotlinIsland/basedtyping/releases/tag/${src.tag}";
    changelog = "https://github.com/KotlinIsland/basedtyping/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ PerchunPak ];
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  setuptools,
  setuptools-scm,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "eval-type-backport";
  version = "0.3.0";
  format = "setuptools";
@@ -14,7 +14,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "alexmojaki";
    repo = "eval_type_backport";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-K+FrgRyxCbrKHcrUaHEJWlLp2i0xes3HwXPN9ucioZY=";
  };

@@ -31,4 +31,4 @@ buildPythonPackage rec {
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ PerchunPak ];
  };
}
})
+4 −4
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "inject";
  version = "5.3.0";
  pyproject = true;
@@ -16,7 +16,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "ivankorobkov";
    repo = "python-inject";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-c/OpEsT9KF7285xfD+VRorrNHn3r9IPp/ts9JHyGK9s=";
  };

@@ -36,8 +36,8 @@ buildPythonPackage rec {
  meta = {
    description = "Python dependency injection framework";
    homepage = "https://github.com/ivankorobkov/python-inject";
    changelog = "https://github.com/ivankorobkov/python-inject/blob/${version}/CHANGES.md";
    changelog = "https://github.com/ivankorobkov/python-inject/blob/${finalAttrs.src.tag}/CHANGES.md";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ PerchunPak ];
  };
}
})
Loading