python3Packages: migrate all my packages to use finalAttrs
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
uv-dynamic-versioning,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "mcstatus";
|
||||
version = "12.0.6";
|
||||
pyproject = true;
|
||||
@@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "py-mine";
|
||||
repo = "mcstatus";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-lo96dZ7YaqZz/fmhuo8XWm5tSsB6ixtdxkZ3Hd6mq78=";
|
||||
};
|
||||
|
||||
@@ -58,7 +58,7 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Python library for checking the status of Minecraft servers";
|
||||
homepage = "https://github.com/py-mine/mcstatus";
|
||||
changelog = "https://github.com/py-mine/mcstatus/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/py-mine/mcstatus/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [
|
||||
fab
|
||||
@@ -66,4 +66,4 @@ buildPythonPackage rec {
|
||||
];
|
||||
mainProgram = "mcstatus";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
pytest-cov-stub,
|
||||
pytest-mock,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "nixpkgs-updaters-library";
|
||||
version = "3.0.0";
|
||||
pyproject = true;
|
||||
@@ -38,7 +38,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "PerchunPak";
|
||||
repo = "nixpkgs-updaters-library";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-0N88valEw+QElMjy84TBKGuqqh9anKhHdW0jQfQ4qd4=";
|
||||
};
|
||||
|
||||
@@ -74,8 +74,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Boilerplate-less updater library for Nixpkgs ecosystems";
|
||||
homepage = "https://github.com/PerchunPak/nixpkgs-updaters-library";
|
||||
changelog = "https://github.com/PerchunPak/nixpkgs-updaters-library/blob/${src.tag}/CHANGELOG.md";
|
||||
changelog = "https://github.com/PerchunPak/nixpkgs-updaters-library/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ PerchunPak ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
faker,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "nonbloat-db";
|
||||
version = "0.1.4";
|
||||
pyproject = true;
|
||||
@@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "PerchunPak";
|
||||
repo = "nonbloat-db";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-x6QFOZ+RYdophuRXMKE4RNi1xDnsa3naUMDbn1vG7hM=";
|
||||
};
|
||||
|
||||
@@ -64,8 +64,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Simple key-value database for my small projects";
|
||||
homepage = "https://github.com/PerchunPak/nonbloat-db";
|
||||
changelog = "https://github.com/PerchunPak/nonbloat-db/blob/v${version}/CHANGES.md";
|
||||
changelog = "https://github.com/PerchunPak/nonbloat-db/blob/${finalAttrs.src.tag}/CHANGES.md";
|
||||
license = lib.licenses.agpl3Only;
|
||||
maintainers = with lib.maintainers; [ PerchunPak ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user