python3Packages.pytouchline-extended: use finalAttrs
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "pytouchline-extended";
|
||||
version = "1.1.2";
|
||||
pyproject = true;
|
||||
@@ -17,13 +17,13 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "brondum";
|
||||
repo = "pytouchline";
|
||||
tag = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-sIrHvC+IkJWgNksgS5lB4IFP37xggVypMLmGjjLlaVQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail '$GITHUB_REF_NAME' '${version}'
|
||||
--replace-fail '$GITHUB_REF_NAME' '${finalAttrs.version}'
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
@@ -41,10 +41,10 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/brondum/pytouchline/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/brondum/pytouchline/releases/tag/${finalAttrs.src.tag}";
|
||||
description = "Roth Touchline interface library";
|
||||
homepage = "https://github.com/brondum/pytouchline";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user