python312Packages.e3-core: 22.5.0 -> 22.6.0 (#344390)

This commit is contained in:
Fabian Affolter 2024-09-25 14:27:38 +02:00 committed by GitHub
commit 13032101a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 62 deletions

View File

@ -1,42 +0,0 @@
From 189681bbfb703a7026ca7bbb3b21ef554807b144 Mon Sep 17 00:00:00 2001
From: tali auster <taliauster@gmail.com>
Date: Wed, 15 Nov 2023 12:15:34 -0700
Subject: [PATCH] use distro over ld
The `ld` module (linux distribution) was renamed to `distro`, presumably
so as not to subsume binutils name.
---
setup.py | 2 +-
src/e3/os/platform.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index c32f46f..de1ada6 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ for p in ("darwin", "linux", "linux2", "win32"):
platform_string = ":sys_platform=='%s'" % p
extras_require[platform_string] = ["psutil"]
if p in ("linux", "linux2"):
- extras_require[platform_string].append("ld")
+ extras_require[platform_string].append("distro")
# Get e3 version from the VERSION file.
version_file = os.path.join(os.path.dirname(__file__), "VERSION")
diff --git a/src/e3/os/platform.py b/src/e3/os/platform.py
index 2d4e174..a9d12d3 100644
--- a/src/e3/os/platform.py
+++ b/src/e3/os/platform.py
@@ -78,7 +78,7 @@ class SystemInfo:
# Fetch linux distribution info on linux OS
if cls.uname.system == "Linux": # linux-only
- import ld
+ import distro as ld
cls.ld_info = {
"name": ld.name(),
--
2.40.1

View File

@ -1,18 +1,19 @@
{ {
lib,
stdenv,
autoPatchelfHook, autoPatchelfHook,
buildPythonPackage, buildPythonPackage,
colorama, colorama,
distro, distro,
fetchFromGitHub, fetchFromGitHub,
lib,
packaging, packaging,
psutil, psutil,
python-dateutil, python-dateutil,
pythonOlder,
pyyaml, pyyaml,
requests,
requests-cache, requests-cache,
requests-toolbelt, requests-toolbelt,
stdenv, requests,
setuptools, setuptools,
stevedore, stevedore,
tqdm, tqdm,
@ -20,38 +21,37 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "e3-core"; pname = "e3-core";
version = "22.5.0"; version = "22.6.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AdaCore"; owner = "AdaCore";
repo = "e3-core"; repo = "e3-core";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-7csZYohU89uavSMPOKGJ8HClmtiweGSghyR7QgFfSY8="; hash = "sha256-6rClGDo8KhBbOg/Rw0nVISVtOAACf5cwSafNInlBGCw=";
}; };
patches = [ ./0001-use-distro-over-ld.patch ]; build-system = [ setuptools ];
nativeBuildInputs = [ nativeBuildInputs = [ autoPatchelfHook ];
autoPatchelfHook
setuptools
];
propagatedBuildInputs = dependencies =
[ [
colorama colorama
packaging packaging
pyyaml
python-dateutil python-dateutil
pyyaml
requests requests
requests-cache requests-cache
requests-toolbelt requests-toolbelt
tqdm
stevedore stevedore
tqdm
] ]
++ lib.optional stdenv.hostPlatform.isLinux [ ++ lib.optional stdenv.hostPlatform.isLinux [
# See setup.py:24. These are required only on Linux. Darwin has its own set # See https://github.com/AdaCore/e3-core/blob/v22.6.0/pyproject.toml#L37-L42
# of requirements. # These are required only on Linux. Darwin has its own set of requirements
psutil psutil
distro distro
]; ];

View File

@ -1,8 +1,9 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
e3-core, e3-core,
fetchFromGitHub, fetchFromGitHub,
lib, pythonOlder,
setuptools, setuptools,
}: }:
@ -11,23 +12,25 @@ buildPythonPackage rec {
version = "26.0"; version = "26.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AdaCore"; owner = "AdaCore";
repo = "e3-testsuite"; repo = "e3-testsuite";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-V20tX0zi2DRHO42udUcW/CDMyBxh1uSTgac0zZGubsI="; hash = "sha256-V20tX0zi2DRHO42udUcW/CDMyBxh1uSTgac0zZGubsI=";
}; };
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
propagatedBuildInputs = [ e3-core ]; dependencies = [ e3-core ];
pythonImportsCheck = [ "e3" ]; pythonImportsCheck = [ "e3" ];
meta = with lib; { meta = with lib; {
description = "Generic testsuite framework in Python";
changelog = "https://github.com/AdaCore/e3-testsuite/releases/tag/${src.rev}"; changelog = "https://github.com/AdaCore/e3-testsuite/releases/tag/${src.rev}";
homepage = "https://github.com/AdaCore/e3-testsuite/"; homepage = "https://github.com/AdaCore/e3-testsuite/";
description = "Generic testsuite framework in Python";
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = with maintainers; [ heijligen ]; maintainers = with maintainers; [ heijligen ];
platforms = platforms.linux; platforms = platforms.linux;