python3Packages.cucumber-expressions: use finalAttrs
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
pyyaml,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "cucumber-expressions";
|
||||
version = "20.0.0";
|
||||
pyproject = true;
|
||||
@@ -15,11 +15,11 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "cucumber";
|
||||
repo = "cucumber-expressions";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-aPxD6snSQCA0y5tagvMy95bVtsk0qGf4KglTsuCGolU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/python";
|
||||
sourceRoot = "${finalAttrs.src.name}/python";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
@@ -36,10 +36,10 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/cucumber/cucumber-expressions/blob/${src.tag}/CHANGELOG.md";
|
||||
changelog = "https://github.com/cucumber/cucumber-expressions/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
description = "Human friendly alternative to Regular Expressions";
|
||||
homepage = "https://github.com/cucumber/cucumber-expressions/tree/main/python";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.dotlambda ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user