various: migrate to by-name (#517544)

This commit is contained in:
Weijia Wang
2026-05-30 10:39:32 +00:00
committed by GitHub
5 changed files with 19 additions and 33 deletions
@@ -1,13 +1,10 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
flit,
aiohttp,
beautifulsoup4,
}:
buildPythonApplication {
python3Packages.buildPythonApplication {
pname = "cambrinary";
version = "unstable-2023-07-16";
pyproject = true;
@@ -19,11 +16,11 @@ buildPythonApplication {
hash = "sha256-wDcvpKAY/6lBjO5h3qKH3+Y2G2gm7spcKCXFMt/bAtE=";
};
nativeBuildInputs = [
build-system = with python3Packages; [
flit
];
propagatedBuildInputs = [
dependencies = with python3Packages; [
aiohttp
beautifulsoup4
];
+1 -1
View File
@@ -45,6 +45,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/Grumbel/evtest-qt";
maintainers = with lib.maintainers; [ alexarice ];
platforms = lib.platforms.linux;
license = lib.licenses.gpl3;
license = lib.licenses.gpl3Plus;
};
}
@@ -9,7 +9,7 @@
libftdi1,
libuuid,
cppunit,
protobuf,
protobuf_21,
zlib,
avahi,
libmicrohttpd,
@@ -18,14 +18,14 @@
fetchpatch,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "ola";
version = "0.10.9";
src = fetchFromGitHub {
owner = "OpenLightingProject";
repo = "ola";
tag = version;
tag = finalAttrs.version;
hash = "sha256-8w8ZT3D/+8Pxl9z2KTXeydVxE5xiPjxZevgmMFgrblU=";
};
patches = [
@@ -47,14 +47,14 @@ stdenv.mkDerivation rec {
libftdi1
libuuid
cppunit
protobuf
protobuf_21
zlib
avahi
libmicrohttpd
python3
];
propagatedBuildInputs = [
(python3.pkgs.protobuf4.override { protobuf = protobuf; })
(python3.pkgs.protobuf4.override { protobuf = protobuf_21; })
python3.pkgs.numpy
];
@@ -73,4 +73,4 @@ stdenv.mkDerivation rec {
];
platforms = lib.platforms.all;
};
}
})
@@ -1,16 +1,13 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
iso8601,
progressbar2,
requests,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "twitch-chat-downloader";
version = "2.5.5";
format = "setuptools";
pyproject = true;
# NOTE: Using maintained fork because upstream has stopped working, and it has
# not been updated in a while.
@@ -18,10 +15,12 @@ buildPythonApplication rec {
src = fetchFromGitHub {
owner = "TheDrHax";
repo = "twitch-chat-downloader";
rev = version;
rev = finalAttrs.version;
hash = "sha256-9wIp0uttVBOdexOMb8VvpUEEdZ97SGSlZcFQ4jM/tqM=";
};
build-system = [ python3Packages.setuptools ];
postPatch = ''
# Update client ID for Twitch changes
# See: <https://github.com/TheDrHax/Twitch-Chat-Downloader/pull/16>
@@ -29,7 +28,7 @@ buildPythonApplication rec {
--replace-fail jzkbprff40iqj646a697cyrvl0zt2m6 kd1unb4b3q4t58fwlpcbzcbnm76a8fp
'';
propagatedBuildInputs = [
dependencies = with python3Packages; [
iso8601
progressbar2
requests
@@ -46,4 +45,4 @@ buildPythonApplication rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ assistant ];
};
}
})
-10
View File
@@ -1642,8 +1642,6 @@ with pkgs;
intelLlvmStdenv = intel-llvm.stdenv;
cambrinary = python3Packages.callPackage ../applications/misc/cambrinary { };
cplex = callPackage ../applications/science/math/cplex (config.cplex or { });
cot = with python3Packages; toPythonApplication cot;
@@ -2884,10 +2882,6 @@ with pkgs;
nwdiag = with python3Packages; toPythonApplication nwdiag;
ola = callPackage ../applications/misc/ola {
protobuf = protobuf_21;
};
ome_zarr = with python3Packages; toPythonApplication ome-zarr;
ophcrack-cli = ophcrack.override { enableGui = false; };
@@ -3276,10 +3270,6 @@ with pkgs;
ttfautohint-nox = ttfautohint.override { enableGUI = false; };
twitch-chat-downloader =
python3Packages.callPackage ../applications/misc/twitch-chat-downloader
{ };
uftraceFull = uftrace.override {
withLuaJIT = true;
withPython = true;