python314Packages.busypie: migrate to finalAttrs
This commit is contained in:
@@ -6,10 +6,9 @@
|
||||
pytest-timeout,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
wheel,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "busypie";
|
||||
version = "0.5.2";
|
||||
pyproject = true;
|
||||
@@ -17,19 +16,16 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "rockem";
|
||||
repo = "busypie";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-LaPgK36ieHKAbm9btx6t//dMdSGdzcaDJVou96D6J3U=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pytest-runner" ""
|
||||
--replace-fail "pytest-runner" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
@@ -42,8 +38,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Expressive busy wait for Python";
|
||||
homepage = "https://github.com/rockem/busypie";
|
||||
changelog = "https://github.com/rockem/busypie/releases/tag/v${version}";
|
||||
changelog = "https://github.com/rockem/busypie/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user