python3Packages.symbolic: migrate to finalAttrs
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "symbolic";
|
||||
version = "13.1.0";
|
||||
pyproject = true;
|
||||
@@ -20,14 +20,14 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "getsentry";
|
||||
repo = "symbolic";
|
||||
tag = version;
|
||||
tag = finalAttrs.version;
|
||||
# the `py` directory is not included in the tarball, so we fetch the source via git instead
|
||||
forceFetchGit = true;
|
||||
hash = "sha256-PjvbEJ+YJjdjrNdlPF0wJfZzK4jCzySm6RmufQLtmRA=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit pname version src;
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-5dElAOrg6aEcDrUFIwYRhJ3KeldstiZdvT99UNZn5yI=";
|
||||
};
|
||||
|
||||
@@ -60,8 +60,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Python library for dealing with symbol files and more";
|
||||
homepage = "https://github.com/getsentry/symbolic";
|
||||
changelog = "https://github.com/getsentry/symbolic/blob/${version}/CHANGELOG.md";
|
||||
changelog = "https://github.com/getsentry/symbolic/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ defelo ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user