astroid: 0.16 -> 0.17 (#404520)

This commit is contained in:
Pol Dellaiera
2025-05-09 06:32:46 +00:00
committed by GitHub

View File

@@ -2,12 +2,11 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
pkg-config,
adwaita-icon-theme,
gmime3,
webkitgtk_4_0,
webkitgtk_4_1,
ronn,
libsass,
notmuch,
@@ -28,30 +27,21 @@
extraPythonPackages ? [ ],
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "astroid";
version = "0.16";
version = "0.17";
src = fetchFromGitHub {
owner = "astroidmail";
repo = "astroid";
rev = "v${version}";
sha256 = "sha256-6xQniOLNUk8tDkooDN3Tp6sb43GqoynO6+fN9yhNqZ4=";
tag = "v${finalAttrs.version}";
hash = "sha256-FDStUt989sQXX6kpqStrdjOdAMlLAepcDba9ul9tcps=";
};
patches = [
(fetchpatch {
name = "symbolic-icons.patch";
url = "https://github.com/astroidmail/astroid/commit/7c2022f06a4146ad62e858bcaacdb4ee817851b9.patch";
hash = "sha256-hZHOg1wUR8Kpd6017fWzhMmG+/WQxSOCnsiyIvUcpbU=";
})
(fetchpatch {
# error: 'is_regular' was not declared in this scope
name = "boost_is_regular.patch";
url = "https://github.com/astroidmail/astroid/commit/abd84171dc6c4e639f3e86649ddc7ff211077244.patch";
hash = "sha256-IY60AnWm18ZwrCFsOvBg76UginpMo7gXBf8GT87FqW4=";
})
];
postPatch = ''
sed -i "s~gvim ~${vim}/bin/vim -g ~g" src/config.cc
sed -i "s~ -geom 10x10~~g" src/config.cc
'';
nativeBuildInputs = [
cmake
@@ -66,7 +56,7 @@ stdenv.mkDerivation rec {
buildInputs = [
gtkmm3
gmime3
webkitgtk_4_0
webkitgtk_4_1
libsass
libpeas
python3
@@ -79,11 +69,6 @@ stdenv.mkDerivation rec {
vim
];
postPatch = ''
sed -i "s~gvim ~${vim}/bin/vim -g ~g" src/config.cc
sed -i "s~ -geom 10x10~~g" src/config.cc
'';
pythonPath = with python3.pkgs; requiredPythonModules extraPythonPackages;
preFixup = ''
buildPythonPath "$out $pythonPath"
@@ -92,15 +77,15 @@ stdenv.mkDerivation rec {
)
'';
meta = with lib; {
meta = {
homepage = "https://astroidmail.github.io/";
description = "GTK frontend to the notmuch mail system";
mainProgram = "astroid";
maintainers = with maintainers; [
maintainers = with lib.maintainers; [
bdimcheff
SuprDewd
];
license = licenses.gpl3Plus;
platforms = platforms.linux;
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
};
}
})