Merge master into staging-next

This commit is contained in:
github-actions[bot]
2024-10-28 00:15:18 +00:00
committed by GitHub
8 changed files with 84 additions and 31 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ let
types
;
inherit (hostPkgs) hostPlatform;
inherit (hostPkgs.stdenv) hostPlatform;
guestSystem =
if hostPlatform.isLinux
+3 -3
View File
@@ -6,7 +6,7 @@
let
pname = "lefthook";
version = "1.7.17";
version = "1.8.1";
in
buildGoModule {
inherit pname version;
@@ -15,10 +15,10 @@ buildGoModule {
owner = "evilmartians";
repo = "lefthook";
rev = "v${version}";
hash = "sha256-r7Tss0NHdEfjfDunWSTxpaV1B5KHGYu0xj9nnyhk8tQ=";
hash = "sha256-a4fghI3iUPnfYSQUR5LoH0eQfSqRMTcW4umeb/PhDt4=";
};
vendorHash = "sha256-rJdtax3r5Nwew+ptY4kIAUtxqPguwrFMMRk78zrZUcU=";
vendorHash = "sha256-dxL+t5tPL+vsiBk+ojtQKcNubO0A72+7DWblxXiwzPE=";
nativeBuildInputs = [ installShellFiles ];
+20 -22
View File
@@ -1,34 +1,26 @@
{ lib
, stdenv
, testers
, fetchFromGitHub
, fetchpatch
, rustPlatform
, darwin
, numbat
, tzdata
{
lib,
stdenv,
testers,
fetchFromGitHub,
rustPlatform,
darwin,
numbat,
tzdata,
}:
rustPlatform.buildRustPackage rec {
pname = "numbat";
version = "1.13.0";
version = "1.14.0";
src = fetchFromGitHub {
owner = "sharkdp";
repo = "numbat";
rev = "v${version}";
hash = "sha256-o3EYhMFBgs/Ni+YCM3+RdUYlwRt+nMaEP/cAkDXMVHc=";
hash = "sha256-TmzM541S2W5Cy8zHEWKRE2Zj2bSgrM4vbsWw3zbi3LQ=";
};
cargoHash = "sha256-rK9RPd/hww2F87l/dd14pB4izE58NuqaewYaqMimV1M=";
patches = [
# https://github.com/sharkdp/numbat/pull/562
(fetchpatch {
url = "https://github.com/sharkdp/numbat/commit/4756a1989ecdab35fd05ca18c721ed15d8cde2b1.patch";
hash = "sha256-22+yePjy+MxJQ60EdvgaTw/IVV0d/wS2Iqza1p1xmfk=";
})
];
cargoHash = "sha256-exvJJsGIj6KhmMcwhPjXMELvisuUtl17BAO6XEJSJmI=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
@@ -60,9 +52,15 @@ rustPlatform.buildRustPackage rec {
'';
homepage = "https://numbat.dev";
changelog = "https://github.com/sharkdp/numbat/releases/tag/v${version}";
license = with licenses; [ asl20 mit ];
license = with licenses; [
asl20
mit
];
mainProgram = "numbat";
maintainers = with maintainers; [ giomf atemu ];
maintainers = with maintainers; [
giomf
atemu
];
# Failing tests on Darwin.
broken = stdenv.isDarwin;
};
@@ -149,6 +149,7 @@ rustPlatform.buildRustPackage {
doCheck = !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
passthru = {
inherit rocksdb; # make used rocksdb version available (e.g., for backup scripts)
webadmin = callPackage ./webadmin.nix { };
updateScript = nix-update-script { };
tests.stalwart-mail = nixosTests.stalwart-mail;
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pytestCheckHook,
pytest-django,
python,
}:
buildPythonPackage rec {
pname = "django-crossdomainmedia";
version = "0.0.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "stefanw";
repo = "django-crossdomainmedia";
# Release is not tagged yet
# https://github.com/stefanw/django-crossdomainmedia/issues/1
# rev = "refs/tags/v${version}";
rev = "45af45a82e2630d99381758c7660fe9bdad06d2d";
hash = "sha256-nwFUm+cxokZ38c5D77z15gIO/kg49oRACOl6+eGGEtQ=";
};
dependencies = [ django ];
checkPhase = ''
${python.interpreter} manage.py test
'';
# django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured.
# pythonImportsCheck = [ "crossdomainmedia" ];
meta = {
description = "Django application to retrieve user's IP address";
homepage = "https://github.com/stefanw/django-crossdomainmedia";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.onny ];
};
}
@@ -9,14 +9,17 @@
rocmSupport ? config.rocmSupport,
cudaPackages,
ocl-icd,
stdenv,
rocmPackages,
stdenv,
# build-system
setuptools,
# dependencies
llvmlite,
numpy,
triton,
unicorn,
# tests
blobfile,
@@ -25,9 +28,9 @@
hexdump,
hypothesis,
librosa,
networkx,
onnx,
pillow,
pydot,
pytest-xdist,
pytestCheckHook,
safetensors,
@@ -101,6 +104,12 @@ buildPythonPackage rec {
# pyobjc-framework-metal
];
optional-dependencies = {
llvm = [ llvmlite ];
arm = [ unicorn ];
triton = [ triton ];
};
pythonImportsCheck =
[
"tinygrad"
@@ -116,9 +125,9 @@ buildPythonPackage rec {
hexdump
hypothesis
librosa
networkx
onnx
pillow
pydot
pytest-xdist
pytestCheckHook
safetensors
@@ -127,7 +136,7 @@ buildPythonPackage rec {
torch
tqdm
transformers
];
] ++ networkx.optional-dependencies.extra;
preCheck = ''
export HOME=$(mktemp -d)
+3 -1
View File
@@ -7,6 +7,8 @@
, makeWrapper
, xorg
, dpkg
, gtk3
, glib
}:
stdenv.mkDerivation rec {
@@ -30,7 +32,7 @@ stdenv.mkDerivation rec {
cp usr/lib/ipscan/ipscan-linux64-${version}.jar $out/share/${pname}-${version}.jar
makeWrapper ${jre}/bin/java $out/bin/ipscan \
--prefix LD_LIBRARY_PATH : "$out/lib/:${lib.makeLibraryPath [ swt xorg.libXtst ]}" \
--prefix LD_LIBRARY_PATH : "$out/lib/:${lib.makeLibraryPath [ swt xorg.libXtst gtk3 glib ]}" \
--add-flags "-Xmx256m -cp $out/share/${pname}-${version}.jar:${swt}/jars/swt.jar net.azib.ipscan.Main"
mkdir -p $out/share/applications
+2
View File
@@ -3372,6 +3372,8 @@ self: super: with self; {
django-crispy-forms = callPackage ../development/python-modules/django-crispy-forms { };
django-crossdomainmedia = callPackage ../development/python-modules/django-crossdomainmedia { };
django-cryptography = callPackage ../development/python-modules/django-cryptography { };
django-csp = callPackage ../development/python-modules/django-csp { };