Merge master into haskell-updates

This commit is contained in:
github-actions[bot] 2021-11-12 00:07:24 +00:00 committed by GitHub
commit 8addf990da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
143 changed files with 1577 additions and 671 deletions

View file

@ -2595,6 +2595,12 @@
githubId = 91113;
name = "David Kleuker";
};
davidarmstronglewis = {
email = "davidlewis@mac.com";
github = "davidarmstronglewis";
githubId = 6754950;
name = "David Armstrong Lewis";
};
davidrusu = {
email = "davidrusu.me@gmail.com";
github = "davidrusu";

View file

@ -614,7 +614,7 @@ Superuser created successfully.
<listitem>
<para>
The <literal>staticjinja</literal> package has been upgraded
from 1.0.4 to 4.1.0
from 1.0.4 to 4.1.1
</para>
</listitem>
<listitem>

View file

@ -202,7 +202,7 @@ In addition to numerous new and upgraded packages, this release has the followin
Superuser created successfully.
```
- The `staticjinja` package has been upgraded from 1.0.4 to 4.1.0
- The `staticjinja` package has been upgraded from 1.0.4 to 4.1.1
- Firefox v91 does not support addons with invalid signature anymore. Firefox ESR needs to be used for nix addon support.

View file

@ -4,6 +4,7 @@ with lib;
let
cfg = config.amazonImage;
amiBootMode = if config.ec2.efi then "uefi" else "legacy-bios";
in {
@ -106,10 +107,12 @@ in {
--arg system ${lib.escapeShellArg pkgs.stdenv.hostPlatform.system} \
--arg root_logical_bytes "$(${pkgs.qemu}/bin/qemu-img info --output json "$rootDisk" | ${pkgs.jq}/bin/jq '."virtual-size"')" \
--arg boot_logical_bytes "$(${pkgs.qemu}/bin/qemu-img info --output json "$bootDisk" | ${pkgs.jq}/bin/jq '."virtual-size"')" \
--arg boot_mode "${amiBootMode}" \
--arg root "$rootDisk" \
--arg boot "$bootDisk" \
'{}
| .label = $system_label
| .boot_mode = $boot_mode
| .system = $system
| .disks.boot.logical_bytes = $boot_logical_bytes
| .disks.boot.file = $boot
@ -145,9 +148,11 @@ in {
--arg system_label ${lib.escapeShellArg config.system.nixos.label} \
--arg system ${lib.escapeShellArg pkgs.stdenv.hostPlatform.system} \
--arg logical_bytes "$(${pkgs.qemu}/bin/qemu-img info --output json "$diskImage" | ${pkgs.jq}/bin/jq '."virtual-size"')" \
--arg boot_mode "${amiBootMode}" \
--arg file "$diskImage" \
'{}
| .label = $system_label
| .boot_mode = $boot_mode
| .system = $system
| .logical_bytes = $logical_bytes
| .file = $file

View file

@ -1,6 +1,9 @@
#!/usr/bin/env nix-shell
#!nix-shell -p awscli -p jq -p qemu -i bash
# shellcheck shell=bash
#
# Future Deprecation?
# This entire thing should probably be replaced with a generic terraform config
# Uploads and registers NixOS images built from the
# <nixos/release.nix> amazonImage attribute. Images are uploaded and
@ -275,6 +278,7 @@ upload_image() {
--region "$region" \
--architecture $amazon_arch \
--block-device-mappings "${block_device_mappings[@]}" \
--boot-mode $(read_image_info .boot_mode) \
"${extra_flags[@]}" \
| jq -r '.ImageId'
)

View file

@ -9,6 +9,14 @@ in {
options.services.plausible = {
enable = mkEnableOption "plausible";
releaseCookiePath = mkOption {
default = null;
type = with types; nullOr (either str path);
description = ''
The path to the file with release cookie. (used for remote connection to the running node).
'';
};
adminUser = {
name = mkOption {
default = "admin";
@ -173,6 +181,8 @@ in {
services.epmd.enable = true;
environment.systemPackages = [ pkgs.plausible ];
systemd.services = mkMerge [
{
plausible = {
@ -197,6 +207,8 @@ in {
DISABLE_REGISTRATION = boolToString cfg.server.disableRegistration;
RELEASE_TMP = "/var/lib/plausible/tmp";
# Home is needed to connect to the node with iex
HOME = "/var/lib/plausible";
ADMIN_USER_NAME = cfg.adminUser.name;
ADMIN_USER_EMAIL = cfg.adminUser.email;
@ -231,6 +243,9 @@ in {
psql -d plausible <<< "UPDATE users SET email_verified=true;"
fi
''}
${optionalString (cfg.releaseCookiePath != null) ''
export RELEASE_COOKIE="$(< $CREDENTIALS_DIRECTORY/RELEASE_COOKIE )"
''}
plausible start
'';
@ -242,7 +257,8 @@ in {
LoadCredential = [
"ADMIN_USER_PWD:${cfg.adminUser.passwordFile}"
"SECRET_KEY_BASE:${cfg.server.secretKeybaseFile}"
] ++ lib.optionals (cfg.mail.smtp.passwordFile != null) [ "SMTP_USER_PWD:${cfg.mail.smtp.passwordFile}"];
] ++ lib.optionals (cfg.mail.smtp.passwordFile != null) [ "SMTP_USER_PWD:${cfg.mail.smtp.passwordFile}"]
++ lib.optionals (cfg.releaseCookiePath != null) [ "RELEASE_COOKIE:${cfg.releaseCookiePath}"];
};
};
}

View file

@ -21,7 +21,8 @@ let
$DB['PORT'] = '${toString cfg.database.port}';
$DB['DATABASE'] = '${cfg.database.name}';
$DB['USER'] = '${cfg.database.user}';
$DB['PASSWORD'] = ${if cfg.database.passwordFile != null then "file_get_contents('${cfg.database.passwordFile}')" else "''"};
# NOTE: file_get_contents adds newline at the end of returned string
$DB['PASSWORD'] = ${if cfg.database.passwordFile != null then "trim(file_get_contents('${cfg.database.passwordFile}'), \"\\r\\n\")" else "''"};
// Schema name. Used for IBM DB2 and PostgreSQL.
$DB['SCHEMA'] = ''';
$ZBX_SERVER = '${cfg.server.address}';

View file

@ -36,7 +36,7 @@ let
machine = create_machine(${machineConfig})
machine.start()
machine.wait_for_unit("multi-user.target")
machine.succeed("nix verify -r --no-trust /run/current-system")
machine.succeed("nix store verify --no-trust -r --option experimental-features nix-command /run/current-system")
with subtest("Check whether the channel got installed correctly"):
machine.succeed("nix-instantiate --dry-run '<nixpkgs>' -A hello")

View file

@ -184,11 +184,12 @@ let
with subtest("Check whether nixos-rebuild works"):
machine.succeed("nixos-rebuild switch >&2")
with subtest("Test nixos-option"):
kernel_modules = machine.succeed("nixos-option boot.initrd.kernelModules")
assert "virtio_console" in kernel_modules
assert "List of modules" in kernel_modules
assert "qemu-guest.nix" in kernel_modules
# FIXME: Nix 2.4 broke nixos-option, someone has to fix it.
# with subtest("Test nixos-option"):
# kernel_modules = machine.succeed("nixos-option boot.initrd.kernelModules")
# assert "virtio_console" in kernel_modules
# assert "List of modules" in kernel_modules
# assert "qemu-guest.nix" in kernel_modules
machine.shutdown()

View file

@ -0,0 +1,33 @@
{ lib, stdenv, fetchFromGitHub, lv2, libX11, libGL, libGLU, mesa, cmake }:
stdenv.mkDerivation rec {
pname = "aether-lv2";
version = "1.2.1";
src = fetchFromGitHub {
owner = "Dougal-s";
repo = "aether";
rev = "v${version}";
sha256 = "0xhih4smjxn87s0f4gaab51d8594qlp0lyypzxl5lm37j1i9zigs";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
buildInputs = [
lv2 libX11 libGL libGLU mesa
];
installPhase = ''
mkdir -p $out/lib/lv2
cp -r aether.lv2 $out/lib/lv2
'';
meta = with lib; {
homepage = "https://dougal-s.github.io/Aether/";
description = "An algorithmic reverb LV2 based on Cloudseed";
maintainers = [ maintainers.magnetophon ];
platforms = platforms.linux;
license = licenses.mit;
};
}

View file

@ -1,13 +1,13 @@
{ stdenv, lib, fetchFromGitHub, faust2jaqt, faust2lv2 }:
stdenv.mkDerivation rec {
pname = "faustPhysicalModeling";
version = "2.33.1";
version = "2.37.3";
src = fetchFromGitHub {
owner = "grame-cncm";
repo = "faust";
rev = version;
sha256 = "sha256-gzkfLfNhJHg/jEhf/RQDhHnXxn3UI15eDZfutKt3yGk=";
sha256 = "sha256-h6L+qRkN2chnI4821WrjD3uRFw3J0sUYVLL8w57vR1U=";
};
buildInputs = [ faust2jaqt faust2lv2 ];

View file

@ -15,14 +15,14 @@
python3Packages.buildPythonApplication rec {
pname = "sublime-music";
version = "0.11.14";
version = "0.11.16";
format = "pyproject";
src = fetchFromGitLab {
owner = "sublime-music";
repo = pname;
rev = "v${version}";
sha256 = "sha256-NzbQtRcsRVppyuG1UuS3IidSnniUOavf5YoAf/kcZqw=";
sha256 = "sha256-n77mTgElwwFaX3WQL8tZzbkPwnsyQ08OW9imSOjpBlg=";
};
nativeBuildInputs = [
@ -71,7 +71,7 @@ python3Packages.buildPythonApplication rec {
];
checkPhase = ''
${xvfb-run}/bin/xvfb-run pytest -k "not test_json_load_unload"
${xvfb-run}/bin/xvfb-run pytest
'';
pythonImportsCheck = [

View file

@ -0,0 +1,33 @@
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, cairo, libxkbcommon, xcbutilcursor, xcbutilkeysyms, xcbutil, libXrandr, libXinerama, libXcursor, alsa-lib, libjack2
}:
stdenv.mkDerivation rec {
pname = "surge-XT";
version = "unstable-2021-11-07";
src = fetchFromGitHub {
owner = "surge-synthesizer";
repo = "surge";
rev = "ed93833eb44b177c977e3a7b878ffdd9bf9f24e5";
sha256 = "0b164659ksl6h5nn7jja5zccx2mwzibqs6b7hg8l98gpcy9fi5r2";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ cairo libxkbcommon xcbutilcursor xcbutilkeysyms xcbutil libXrandr libXinerama libXcursor alsa-lib libjack2 ];
installPhase = ''
cd ..
cmake --build build --config Release --target install
'';
doInstallCheck = false;
meta = with lib; {
description = "LV2 & VST3 synthesizer plug-in (previously released as Vember Audio Surge)";
homepage = "https://surge-synthesizer.github.io";
license = licenses.gpl3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ magnetophon orivej ];
};
}

View file

@ -10,14 +10,14 @@
python3Packages.buildPythonPackage rec {
pname = "hydrus";
version = "460";
version = "461";
format = "other";
src = fetchFromGitHub {
owner = "hydrusnetwork";
repo = "hydrus";
rev = "v${version}";
sha256 = "sha256-cIvidbvMAWVs/XnS7I5ZQkuya9lfuRPNCRSTbFnKhSw=";
sha256 = "sha256-fVqMSzQ4VhiRh6gDFApln1jioIDs80ceyV+ClNRhjKA=";
};
nativeBuildInputs = [

View file

@ -1,13 +1,14 @@
{ fetchurl, lib, stdenv, cmake, qt4, fftw }:
{ lib, stdenv, fetchFromGitHub, cmake, qt4, fftw }:
stdenv.mkDerivation rec {
pname = "smartdeblur";
version = "unstable-2013-01-09";
src = fetchurl {
url = "https://github.com/Y-Vladimir/SmartDeblur/tarball/9895036d26";
name = "smartdeblur-${version}.tar.gz";
sha256 = "126x9x1zhqdarjz9in0p1qhmqg3jwz7frizadjvx723g2ppi33s4";
src = fetchFromGitHub {
owner = "Y-Vladimir";
repo = "SmartDeblur";
rev = "9895036d26cbb823a9ade28cdcb26fd0ac37258e";
sha256 = "sha256-+EbqEpOG1fj2OKmlz8NRF/CGfT2OYGwY5/lwJHCHaMw=";
};
preConfigure = ''
@ -19,11 +20,11 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DUSE_SYSTEM_FFTW=ON" ];
meta = {
meta = with lib; {
homepage = "https://github.com/Y-Vladimir/SmartDeblur";
description = "Tool for restoring blurry and defocused images";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ ];
platforms = with lib.platforms; linux;
license = licenses.gpl3;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}

View file

@ -2,13 +2,13 @@
let
pname = "anytype";
version = "0.20.9";
version = "0.21.1";
name = "Anytype-${version}";
nameExecutable = pname;
src = fetchurl {
url = "https://at9412003.fra1.digitaloceanspaces.com/Anytype-${version}.AppImage";
name = "Anytype-${version}.AppImage";
sha256 = "sha256-dm3bdKbUHI0FFcyYeYd2XSuZuoPsUhk4KcEwzPHiHM8=";
sha256 = "sha256-5QsbB48g11TyfWCbR7Sz2AETEwdyG+bSJQNGRHrIueE=";
};
appimageContents = appimageTools.extractType2 { inherit name src; };
in

View file

@ -1,10 +1,7 @@
{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron_12,
alsa-lib, gtk3, libxshmfence, mesa, nss, popt }:
{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron
, alsa-lib, gtk3, libxshmfence, mesa, nss, popt }:
let
electron = electron_12;
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "binance";
version = "1.26.0";

View file

@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-R3H6tv6fzQG41Y2rui0K8fdQ/+Ywnc5hqTPFjktrhF8=";
};
makeFlags = [ "CC=$$CXX" ];
buildInputs = [ ncurses ];
installPhase = ''

View file

@ -23,7 +23,6 @@ buildGoModule rec {
meta = with lib; {
homepage = "https://github.com/norwoodj/helm-docs";
description = "A tool for automatically generating markdown documentation for Helm charts";
platforms = platforms.unix;
license = licenses.gpl3Only;
maintainers = with maintainers; [ sagikazarmark ];
};

View file

@ -195,9 +195,9 @@ rec {
};
terraform_1_0 = mkTerraform {
version = "1.0.10";
sha256 = "1jcgp9q99785m85754ipza7b3dd3g58adpnyh5w2imqj01cas6mb";
vendorSha256 = "00cl42w1mzsi9qd09wydfvp5f2h7lxaay6s2dv0mf47k6h7prf42";
version = "1.0.11";
sha256 = "0k05s4zm16vksq21f1q00y2lzfgi5fhs1ygydm8jk0srs9x8ask7";
vendorSha256 = "1brgghl7fb26va4adix443rl1dkjaqrr4jkknxjkcaps0knqp172";
patches = [ ./provider-path-0_15.patch ];
passthru = { inherit plugins; };
};

View file

@ -2,14 +2,14 @@
python3Packages.buildPythonApplication rec {
pname = "flexget";
version = "3.1.149";
version = "3.1.150";
# Fetch from GitHub in order to use `requirements.in`
src = fetchFromGitHub {
owner = "flexget";
repo = "flexget";
rev = "v${version}";
sha256 = "1yrb8cfrc6y7gpfgzn0q6ldx9vk06qp229wjs4q8rccp72p6d6gg";
sha256 = "sha256-tSA1pDGzIX2uIEWM0xV53jj1vBcJFMNCRakczs7Hue4=";
};
postPatch = ''

View file

@ -14,13 +14,13 @@
mkDerivation rec {
pname = "kdeltachat";
version = "unstable-2021-09-10";
version = "unstable-2021-10-27";
src = fetchFromSourcehut {
owner = "~link2xt";
repo = "kdeltachat";
rev = "40092aa096bac7e279eb5a4cc97758bac484236c";
sha256 = "0vmsbxx4hxh35v1lbj82vq2w8z8inj83xpf24wzlbdr9inlbmym4";
rev = "e1201cdcce4311061643d90cc0132745023a82d2";
sha256 = "04xqvyj4rzgl9r7sfjjw1kc3vql30c80rwppff2zr5aijr15fgjj";
};
nativeBuildInputs = [

View file

@ -20,6 +20,7 @@ stdenv.mkDerivation {
pillow
urllib3
aiofiles
notify2
]))];
installPhase = ''

View file

@ -1,37 +1,22 @@
{ stdenv, lib, fetchFromGitHub
, qtbase, qttools, qmake, wrapQtAppsHook
, qtbase, qttools, cmake, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
pname = "librepcb";
version = "0.1.5";
version = "0.1.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "0ag8h3id2c1k9ds22rfrvyhf2vjhkv82xnrdrz4n1hnlr9566vcx";
sha256 = "0gzf3asdgdicpikb412134ybqnbbark948yrfhvba2w4i9cwbk2r";
fetchSubmodules = true;
};
nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
nativeBuildInputs = [ cmake qttools wrapQtAppsHook ];
buildInputs = [ qtbase ];
qmakeFlags = ["-r"];
# the build system tries to use 'git' at build time to find the HEAD hash.
# that's a no-no, so replace it with a quick hack. NOTE: the # adds a comment
# at the end of the line to remove the git call.
postPatch = ''
substituteInPlace ./libs/librepcb/common/common.pro \
--replace 'GIT_COMMIT_SHA' 'GIT_COMMIT_SHA="\\\"${src.rev}\\\"" # '
'';
postInstall = ''
mkdir -p $out/share/librepcb/fontobene
cp share/librepcb/fontobene/newstroke.bene $out/share/librepcb/fontobene/
'';
meta = with lib; {
description = "A free EDA software to develop printed circuit boards";
homepage = "https://librepcb.org/";

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "logisim-evolution";
version = "3.5.0";
version = "3.7.1";
src = fetchurl {
url = "https://github.com/logisim-evolution/logisim-evolution/releases/download/v${version}/logisim-evolution-${version}-all.jar";
sha256 = "1r6im4gmjbnckx8jig6bxi5lxv06lwdnpxkyfalsfmw4nybd5arw";
sha256 = "04q9bzhnzpi8cgv3ly4ii88qvmlw9n09c4p1qmg8dhxqkskdqj6h";
};
dontUnpack = true;
@ -30,8 +30,11 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
makeWrapper ${jre}/bin/java $out/bin/logisim-evolution --add-flags "-jar $src"
unzip $src resources/logisim/img/logisim-icon.svg
install -D resources/logisim/img/logisim-icon.svg $out/share/pixmaps/logisim-evolution.svg
# Create icons
unzip $src "resources/logisim/img/*"
for size in 16 32 48 128 256; do
install -D "./resources/logisim/img/logisim-icon-$size.png" "$out/share/icons/hicolor/''${size}x''${size}/apps/logisim-evolution.png"
done
runHook postInstall
'';

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "gnunn1";
repo = "tilix";
rev = "${version}";
rev = version;
sha256 = "sha256:020gr4q7kmqq8vnsh8rw97gf1p2n1yq4d7ncyjjh9l13zkaxqqv9";
};

View file

@ -112,10 +112,6 @@ stdenv.mkDerivation rec {
})
] ++ lib.optional nixosTestRunner ./force-uid0-on-9p.patch
++ lib.optionals stdenv.hostPlatform.isMusl [
(fetchpatch {
url = "https://raw.githubusercontent.com/alpinelinux/aports/2bb133986e8fa90e2e76d53369f03861a87a74ef/main/qemu/musl-F_SHLCK-and-F_EXLCK.patch";
sha256 = "1gm67v41gw6apzgz7jr3zv9z80wvkv0jaxd2w4d16hmipa8bhs0k";
})
./sigrtminmax.patch
(fetchpatch {
url = "https://raw.githubusercontent.com/alpinelinux/aports/2bb133986e8fa90e2e76d53369f03861a87a74ef/main/qemu/fix-sigevent-and-sigval_t.patch";

View file

@ -12,16 +12,16 @@
rustPlatform.buildRustPackage rec {
pname = "i3status-rust";
version = "0.20.5";
version = "0.20.6";
src = fetchFromGitHub {
owner = "greshake";
repo = pname;
rev = "v${version}";
sha256 = "sha256-7KEG4akn6tOUrgQUZFX0Wiz8YAKFUAr8AN16Xg8CLO4=";
sha256 = "sha256-FLMfXloAAIz/9KAtKFfB8uokQz/J8R+WsGarq/5cblo=";
};
cargoSha256 = "sha256-GTE1KJ/ZpiqwmmKYx6kNzPNNmz0QHYWrIyKN49uzdZA=";
cargoSha256 = "sha256-UVAF2rz0y6h3/rcTJ+31mMyJDLG7q40n6vBK8Wxultg=";
nativeBuildInputs = [ pkg-config makeWrapper ];

View file

@ -390,7 +390,7 @@ rec {
diskImage=$(pwd)/disk-image.qcow2
origImage=${attrs.diskImage}
if test -d "$origImage"; then origImage="$origImage/disk-image.qcow2"; fi
${qemu}/bin/qemu-img create -b "$origImage" -f qcow2 $diskImage
${qemu}/bin/qemu-img create -F ${attrs.diskImageFormat} -b "$origImage" -f qcow2 $diskImage
'';
/* Inside the VM, run the stdenv setup script normally, but at the

View file

@ -28,10 +28,10 @@ with vmTools;
buildInDebian = runInLinuxImage (stdenv.mkDerivation {
name = "deb-compile";
src = patchelf.src;
diskImage = diskImages.ubuntu1204i386;
diskImage = diskImages.ubuntu1804i386;
diskImageFormat = "qcow2";
memSize = 512;
prePhases = [ sysInfoPhase ];
sysInfoPhase = ''
postHook = ''
dpkg-query --list
'';
});

View file

@ -14,11 +14,12 @@ stdenvNoCC.mkDerivation {
unpackPhase = ''
cabextract --lowercase --filter ppviewer.cab $src
cabextract --lowercase --filter '*.TTF' ppviewer.cab
cabextract --lowercase --filter '*.TTC' ppviewer.cab
'';
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
cp *.ttf *.ttc $out/share/fonts/truetype
# Set up no-op font configs to override any aliases set up by
# other packages.

View file

@ -58,20 +58,12 @@ stdenv.mkDerivation rec {
# Our launchers that use paths at /run/current-system/sw/bin
mkdir -p $out/etc/skel/.config/plank/dock1
cp -avr ${./launchers} $out/etc/skel/.config/plank/dock1/launchers
# Whitelist wingpanel indicators to be used in the greeter
# https://github.com/elementary/greeter/blob/fc19752f147c62767cd2097c0c0c0fcce41e5873/debian/io.elementary.greeter.whitelist
# wingpanel 2.3.2 renamed this to .allowed to .forbidden
# https://github.com/elementary/wingpanel/pull/326
install -D ${./io.elementary.greeter.allowed} $out/etc/wingpanel.d/io.elementary.greeter.allowed
'';
postFixup = ''
# https://github.com/elementary/default-settings/issues/55
rm -rf $out/share/plymouth
rm -rf $out/share/cups
rm -rf $out/share/applications
rm -r $out/share/cups
rm -r $out/share/applications
'';
passthru = {

View file

@ -1,6 +0,0 @@
liba11y.so
libbluetooth.so
libkeyboard.so
libnetwork.so
libpower.so
libsession.so

View file

@ -0,0 +1,37 @@
From c9aaff2461daba31a25ed20c0789ffd7c3561887 Mon Sep 17 00:00:00 2001
From: Pasquale <p3dimaria@hotmail.it>
Date: Tue, 9 Nov 2021 23:12:50 +0100
Subject: [PATCH] Avoid usage of npx
tsc is only used for checking type annotation
that are stripped by esbuild
---
src/kwinscript/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/kwinscript/CMakeLists.txt b/src/kwinscript/CMakeLists.txt
index 6d85d5d..6f966a4 100644
--- a/src/kwinscript/CMakeLists.txt
+++ b/src/kwinscript/CMakeLists.txt
@@ -29,7 +29,7 @@ add_custom_target(
add_custom_command(
OUTPUT "bismuth/contents/code/index.mjs"
- COMMAND "npx" "esbuild"
+ COMMAND "esbuild"
"--bundle" "${CMAKE_CURRENT_SOURCE_DIR}/index.ts"
"--outfile=${CMAKE_CURRENT_BINARY_DIR}/bismuth/contents/code/index.mjs"
"--format=esm"
@@ -40,7 +40,7 @@ add_custom_command(
add_custom_target(
LintViaTSC
- COMMAND "npx" "tsc" "--noEmit" "--incremental"
+ COMMAND "true"
COMMENT "👮 Checking sources using TS Compiler..."
)
--
2.33.1

View file

@ -0,0 +1,48 @@
{ lib
, mkDerivation
, fetchFromGitHub
, kcoreaddons
, kwindowsystem
, plasma-framework
, systemsettings
, cmake
, extra-cmake-modules
, esbuild
}:
mkDerivation rec {
pname = "bismuth";
version = "2.1.0";
src = fetchFromGitHub {
owner = "Bismuth-Forge";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ICpGgFvVi7tiYbMCo3JWQmbA36rdWF4NFYTWIejhxr4=";
};
patches = [
./0001-Avoid-usage-of-npx.patch
];
nativeBuildInputs = [
cmake
extra-cmake-modules
esbuild
];
buildInputs = [
kcoreaddons
kwindowsystem
plasma-framework
systemsettings
];
meta = with lib; {
description = "A dynamic tiling extension for KWin";
license = licenses.mit;
maintainers = with maintainers; [ pasqui23 ];
homepage = "https://bismuth-forge.github.io/bismuth/";
inherit (kwindowsystem.meta) platforms;
};
}

View file

@ -155,6 +155,7 @@ let
thirdParty = let inherit (libsForQt5) callPackage; in {
plasma-applet-caffeine-plus = callPackage ./3rdparty/addons/caffeine-plus.nix { };
plasma-applet-virtual-desktop-bar = callPackage ./3rdparty/addons/virtual-desktop-bar.nix { };
bismuth = callPackage ./3rdparty/addons/bismuth { };
kwin-dynamic-workspaces = callPackage ./3rdparty/kwin/scripts/dynamic-workspaces.nix { };
kwin-tiling = callPackage ./3rdparty/kwin/scripts/tiling.nix { };
krohnkite = callPackage ./3rdparty/kwin/scripts/krohnkite.nix { };

View file

@ -3,8 +3,8 @@
let
inherit (stdenv) hostPlatform;
OS = if stdenv.hostPlatform.isDarwin then "osx" else hostPlatform.parsed.kernel.name;
ARCH = toString hostPlatform.parsed.cpu.name;
OS = if hostPlatform.isDarwin then "osx" else hostPlatform.parsed.kernel.name;
ARCH = if hostPlatform.isDarwin && hostPlatform.isAarch64 then "arm64" else hostPlatform.parsed.cpu.name;
in stdenv.mkDerivation {
pname = "ldc-bootstrap";
inherit version;
@ -37,6 +37,6 @@ in stdenv.mkDerivation {
# from https://github.com/ldc-developers/ldc/blob/master/LICENSE
license = with licenses; [ bsd3 boost mit ncsa gpl2Plus ];
maintainers = with maintainers; [ ThomasMader lionello ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
};
}

View file

@ -1,10 +1,11 @@
{ callPackage }:
callPackage ./binary.nix {
version = "1.19.0";
version = "1.25.0";
hashes = {
# Get these from `nix-prefetch-url https://github.com/ldc-developers/ldc/releases/download/v1.19.0/ldc2-1.19.0-osx-x86_64.tar.xz` etc..
osx-x86_64 = "1bp3xkh9zp64dzq8isanib1gacb3nfbl70qv15qygwk1zan6zgy7";
linux-x86_64 = "146grr2lwarfk13wgkpyb77xb6b3as1is2rf4s2hipqjmc8biy1h";
linux-aarch64 = "1fv6jshfvi15m7masgxq1hgp216qjd5amizrqdf26vhrq3a08li3";
osx-x86_64 = "1xaqxf1lz8kdb0n5iycfpxpvabf1zy0akg14kg554sm85xnsf8pa";
linux-x86_64 = "1shzdq564jg3ga1hwrvpx30lpszc6pqndqndr5mqmc352znkiy5i";
linux-aarch64 = "04i4xxwhq02d98r3qrrnv5dbd4xr4d7ph3zv94z2m58z3vgphdjh";
osx-arm64 = "0b0cpgzn23clggx0cvdaja29q7w7ihkmjbnf1md03h9h5nzp9z1v";
};
}

View file

@ -132,6 +132,6 @@ stdenv.mkDerivation rec {
# from https://github.com/ldc-developers/ldc/blob/master/LICENSE
license = with licenses; [ bsd3 boost mit ncsa gpl2Plus ];
maintainers = with maintainers; [ ThomasMader lionello ];
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-darwin" ];
};
}

View file

@ -76,7 +76,7 @@ stdenv.mkDerivation (args // {
preConfigure = optionalString (!lib.versionAtLeast version "4.04") ''
CAT=$(type -tp cat)
sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
'' + optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
'' + optionalString (stdenv.isDarwin && !lib.versionAtLeast version "4.13") ''
# Do what upstream does by default now: https://github.com/ocaml/ocaml/pull/10176
# This is required for aarch64-darwin, everything else works as is.
AS="${stdenv.cc}/bin/cc -c" ASPP="${stdenv.cc}/bin/cc -c"

View file

@ -0,0 +1,35 @@
{ stdenv, lib, fetchFromGitHub, cmake, boost, libxml2, minizip, readline }:
stdenv.mkDerivation {
pname = "collada-dom";
version = "unstable-2020-01-03";
src = fetchFromGitHub {
owner = "rdiankov";
repo = "collada-dom";
rev = "c1e20b7d6ff806237030fe82f126cb86d661f063";
sha256 = "sha256-A1ne/D6S0shwCzb9spd1MoSt/238HWA8dvgd+DC9cXc=";
};
postInstall = ''
chmod +w -R $out
ln -s $out/include/*/* $out/include
'';
nativeBuildInputs = [ cmake ];
buildInputs = [
boost
libxml2
minizip
readline
];
meta = with lib; {
description = "Lightweight version of collada-dom, with only the parser.";
homepage = "https://github.com/rdiankov/collada-dom";
license = licenses.mit;
maintainers = with maintainers; [ marius851000 ];
platforms = platforms.all;
};
}

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2, fixDarwinDylibNames }:
{ lib, stdenv, fetchurl, fetchpatch, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2, fixDarwinDylibNames, pkgsStatic }:
stdenv.mkDerivation rec {
name = "giflib-5.2.1";
@ -19,12 +19,21 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace Makefile \
--replace 'PREFIX = /usr/local' 'PREFIX = ${builtins.placeholder "out"}'
''
# Upstream build system does not support NOT building shared libraries.
+ lib.optionalString stdenv.hostPlatform.isStatic ''
sed -i '/all:/ s/libgif.so//' Makefile
sed -i '/all:/ s/libutil.so//' Makefile
sed -i '/-m 755 libgif.so/ d' Makefile
sed -i '/ln -sf libgif.so/ d' Makefile
'';
nativeBuildInputs = lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
buildInputs = [ xmlto docbook_xml_dtd_412 docbook_xsl libxml2 ];
passthru.tests.static = pkgsStatic.giflib;
meta = {
description = "A library for reading and writing gif images";
platforms = lib.platforms.unix;

View file

@ -42,6 +42,6 @@ stdenv.mkDerivation rec {
license = licenses.bsd3;
description = "Library for application-level logging";
platforms = platforms.unix;
maintainers = with lib.maintainers; [ nh2 r-burns ];
maintainers = with maintainers; [ nh2 r-burns ];
};
}

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
# darwin changes configure.ac which means we need to regenerate
# the configure scripts
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libmd ];
propagatedBuildInputs = [ libmd ];
patches = [ ./darwin.patch ];

View file

@ -0,0 +1,53 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5ed8020c..44ca43e7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,12 +2,20 @@ cmake_minimum_required(VERSION 3.16)
project(deltachat LANGUAGES C)
include(GNUInstallDirs)
+if(APPLE)
+ set(DYNAMIC_EXT "dylib")
+elseif(UNIX)
+ set(DYNAMIC_EXT "so")
+else()
+ set(DYNAMIC_EXT "dll")
+endif()
+
find_program(CARGO cargo)
add_custom_command(
OUTPUT
"target/release/libdeltachat.a"
- "target/release/libdeltachat.so"
+ "target/release/libdeltachat.${DYNAMIC_EXT}"
"target/release/pkgconfig/deltachat.pc"
COMMAND
PREFIX=${CMAKE_INSTALL_PREFIX}
@@ -32,11 +40,11 @@ add_custom_target(
ALL
DEPENDS
"target/release/libdeltachat.a"
- "target/release/libdeltachat.so"
+ "target/release/libdeltachat.${DYNAMIC_EXT}"
"target/release/pkgconfig/deltachat.pc"
)
install(FILES "deltachat-ffi/deltachat.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES "target/release/libdeltachat.a" DESTINATION ${CMAKE_INSTALL_LIBDIR})
-install(FILES "target/release/libdeltachat.so" DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(FILES "target/release/libdeltachat.${DYNAMIC_EXT}" DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES "target/release/pkgconfig/deltachat.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
diff --git a/python/install_python_bindings.py b/python/install_python_bindings.py
index c8ed43e2..714c7e30 100755
--- a/python/install_python_bindings.py
+++ b/python/install_python_bindings.py
@@ -24,7 +24,7 @@
print("running:", " ".join(cmd))
subprocess.check_call(cmd)
- subprocess.check_call("rm -rf build/ src/deltachat/*.so" , shell=True)
+ subprocess.check_call("rm -rf build/ src/deltachat/*.so src/deltachat/*.dylib" , shell=True)
if len(sys.argv) <= 1 or sys.argv[1] != "onlybuild":
subprocess.check_call([

View file

@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, openssl
, perl
@ -16,33 +15,25 @@
stdenv.mkDerivation rec {
pname = "libdeltachat";
version = "1.60.0";
version = "1.63.0";
src = fetchFromGitHub {
owner = "deltachat";
repo = "deltachat-core-rust";
rev = version;
sha256 = "1agm5xyaib4ynmw4mhgmkhh4lnxs91wv0q9i1zfihv2vkckfm2s2";
sha256 = "1511jh38h7nmn4dpyi1vfxvhybcacc6gavwfifxvb5npirphziga";
};
patches = [
# https://github.com/deltachat/deltachat-core-rust/pull/2589
(fetchpatch {
url = "https://github.com/deltachat/deltachat-core-rust/commit/408467e85d04fbbfd6bed5908d84d9e995943487.patch";
sha256 = "1j2ywaazglgl6370js34acrg0wrh0b7krqg05dfjf65n527lzn59";
})
./darwin-dylib.patch
./no-static-lib.patch
# https://github.com/deltachat/deltachat-core-rust/pull/2660
(fetchpatch {
url = "https://github.com/deltachat/deltachat-core-rust/commit/8fb5e038a97d8ae68564c885d61b93127a68366d.patch";
sha256 = "088pzfrrkgfi4646dc72404s3kykcpni7hgkppalwlzg0p4is41x";
})
];
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
sha256 = "09d3mw2hb1gmqg7smaqwnfm7izw40znl0h1dz7s2imms2cnkjws1";
sha256 = "0hfp2k84mvq11h7q96hkcj3k6f3sxw8wx89acg4hy6lbh8xpy6ai";
};
nativeBuildInputs = [

View file

@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe7abe08..acdbe0d6 100644
index 44ca43e7..8b6960dd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,6 @@ find_program(CARGO cargo)
@@ -14,7 +14,6 @@ find_program(CARGO cargo)
add_custom_command(
OUTPUT
@ -10,7 +10,7 @@ index fe7abe08..acdbe0d6 100644
"target/release/libdeltachat.${DYNAMIC_EXT}"
"target/release/pkgconfig/deltachat.pc"
COMMAND
@@ -38,13 +37,11 @@ add_custom_target(
@@ -39,12 +38,10 @@ add_custom_target(
lib_deltachat
ALL
DEPENDS
@ -19,13 +19,12 @@ index fe7abe08..acdbe0d6 100644
"target/release/pkgconfig/deltachat.pc"
)
include(GNUInstallDirs)
install(FILES "deltachat-ffi/deltachat.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
-install(FILES "target/release/libdeltachat.a" DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES "target/release/libdeltachat.${DYNAMIC_EXT}" DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES "target/release/pkgconfig/deltachat.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
diff --git a/deltachat-ffi/Cargo.toml b/deltachat-ffi/Cargo.toml
index a34a27ba..cf354abb 100644
index de0fbafe..120efec9 100644
--- a/deltachat-ffi/Cargo.toml
+++ b/deltachat-ffi/Cargo.toml
@@ -12,7 +12,7 @@ categories = ["cryptography", "std", "email"]

View file

@ -2,6 +2,7 @@
libX11, libXinerama, libXrandr, libGLU, libGL,
glib, ilmbase, libxml2, pcre, zlib,
AGL, Carbon, Cocoa, Foundation,
boost,
jpegSupport ? true, libjpeg,
exrSupport ? false, openexr,
gifSupport ? true, giflib,
@ -9,7 +10,7 @@
tiffSupport ? true, libtiff,
gdalSupport ? false, gdal,
curlSupport ? true, curl,
colladaSupport ? false, opencollada,
colladaSupport ? false, collada-dom,
opencascadeSupport ? false, opencascade,
ffmpegSupport ? false, ffmpeg,
nvttSupport ? false, nvidia-texture-tools,
@ -20,7 +21,7 @@
lasSupport ? false, libLAS,
luaSupport ? false, lua,
sdlSupport ? false, SDL2,
restSupport ? false, asio, boost,
restSupport ? false, asio,
withApps ? false,
withExamples ? false, fltk, wxGTK,
}:
@ -48,7 +49,7 @@ stdenv.mkDerivation rec {
++ lib.optional tiffSupport libtiff
++ lib.optional gdalSupport gdal
++ lib.optional curlSupport curl
++ lib.optional colladaSupport opencollada
++ lib.optional colladaSupport collada-dom
++ lib.optional opencascadeSupport opencascade
++ lib.optional ffmpegSupport ffmpeg
++ lib.optional nvttSupport nvidia-texture-tools
@ -59,9 +60,10 @@ stdenv.mkDerivation rec {
++ lib.optional lasSupport libLAS
++ lib.optional luaSupport lua
++ lib.optional sdlSupport SDL2
++ lib.optionals restSupport [ asio boost ]
++ lib.optional restSupport asio
++ lib.optionals withExamples [ fltk wxGTK ]
++ lib.optionals stdenv.isDarwin [ AGL Carbon Cocoa Foundation ]
++ lib.optional (restSupport || colladaSupport) boost
;
cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF" ++ lib.optional withExamples "-DBUILD_OSG_EXAMPLES=ON";

View file

@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
pname = "pcre2";
version = "10.37";
src = fetchurl {
url = "https://ftp.pcre.org/pub/pcre/${pname}-${version}.tar.bz2";
url = "https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${version}/pcre2-${version}.tar.bz2";
hash = "sha256-TZWpbouAUpiTtFYr4SZI15i5V7G6Gq45YGu8KrlW0nA=";
};

View file

@ -1,7 +1,6 @@
{ stdenv
, lib
, fetchFromGitLab
, fetchpatch
, removeReferencesTo
, python3
, meson
@ -63,7 +62,7 @@ let
self = stdenv.mkDerivation rec {
pname = "pipewire";
version = "0.3.39";
version = "0.3.40";
outputs = [
"out"
@ -81,7 +80,7 @@ let
owner = "pipewire";
repo = "pipewire";
rev = version;
sha256 = "sha256-peTS1+NuQxZg1rrv8DrnJW5BR9yReleqooIwhZWHLjM=";
sha256 = "sha256-eY6uQa4+sC6yUWhF4IpAgRoppwhHO4s5fIMXOkS0z7A=";
};
patches = [
@ -97,12 +96,6 @@ let
./0090-pipewire-config-template-paths.patch
# Place SPA data files in lib output to avoid dependency cycles
./0095-spa-data-dir.patch
# Fix compilation on some architectures
# XXX: REMOVE ON NEXT RELEASE
(fetchpatch {
url = "https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/651f0decea5f83730c271e9bed03cdd0048fcd49.diff";
sha256 = "1bmpi5qn750mcspaw7m57ww0503sl9781jswqby4gr0f7c5wmqvj";
})
];
nativeBuildInputs = [
@ -188,7 +181,7 @@ let
'';
passthru = {
updateScript = ./update.sh;
updateScript = ./update-pipewire.sh;
tests = {
installedTests = nixosTests.installed-tests.pipewire;

View file

@ -20,14 +20,14 @@ let
self = stdenv.mkDerivation rec {
pname = "pipewire-media-session";
version = "0.4.0";
version = "0.4.1";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "pipewire";
repo = "media-session";
rev = version;
sha256 = "sha256-zhOvBlG7DuQkJ+ZZBhBhfKwk+bbLljpt3w4JlK3cJLk=";
sha256 = "sha256-e537gTkiNYMz2YJrOff/MXYWVDgHZDkqkSn8Qh+7Wr4=";
};
nativeBuildInputs = [
@ -67,6 +67,7 @@ let
'';
passthru = {
updateScript = ./update-media-session.sh;
tests = {
test-paths = callPackage ./test-paths.nix { package = self; } {
paths-out = [

View file

@ -10,19 +10,6 @@ IFS=$'\n'
NIXPKGS_ROOT="$(git rev-parse --show-toplevel)"
cd "$NIXPKGS_ROOT"
nix-update pipewire
outputs=$(nix-build . -A pipewire)
for p in $outputs; do
conf_files=$(find "$p/nix-support/" -name '*.conf.json')
for c in $conf_files; do
file_name=$(basename "$c")
if [[ ! -e "nixos/modules/services/desktops/pipewire/daemon/$file_name" ]]; then
echo "New file $file_name found! Add it to the module config and passthru tests!"
fi
install -m 0644 "$c" "nixos/modules/services/desktops/pipewire/daemon/"
done
done
nix-update pipewire-media-session
outputs=$(nix-build . -A pipewire-media-session)
for p in $outputs; do

View file

@ -0,0 +1,25 @@
#!/usr/bin/env nix-shell
#!nix-shell -p nix-update -i bash
# shellcheck shell=bash
set -o errexit -o pipefail -o nounset -o errtrace
shopt -s inherit_errexit
shopt -s nullglob
IFS=$'\n'
NIXPKGS_ROOT="$(git rev-parse --show-toplevel)"
cd "$NIXPKGS_ROOT"
nix-update pipewire
outputs=$(nix-build . -A pipewire)
for p in $outputs; do
conf_files=$(find "$p/nix-support/" -name '*.conf.json')
for c in $conf_files; do
file_name=$(basename "$c")
if [[ ! -e "nixos/modules/services/desktops/pipewire/daemon/$file_name" ]]; then
echo "New file $file_name found! Add it to the module config and passthru tests!"
fi
install -m 0644 "$c" "nixos/modules/services/desktops/pipewire/daemon/"
done
done

View file

@ -0,0 +1,27 @@
{ stdenv, lib, fetchFromGitHub, cmake, libGL, SDL2, libGLU }:
stdenv.mkDerivation rec {
pname = "recastai";
# use latest revision for the CMake build process and OpenMW
# OpenMW use e75adf86f91eb3082220085e42dda62679f9a3ea
version = "unstable-2021-03-05";
src = fetchFromGitHub {
owner = "recastnavigation";
repo = "recastnavigation";
rev = "c5cbd53024c8a9d8d097a4371215e3342d2fdc87";
sha256 = "sha256-QP3lMMFR6fiKQTksAkRL6X9yaoVz2xt4QSIP9g6piww=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libGL SDL2 libGLU ];
meta = with lib; {
homepage = "https://github.com/recastnavigation/recastnavigation";
description = "Navigation-mesh Toolset for Games";
license = licenses.zlib;
maintainers = with maintainers; [ marius851000 ];
platforms = platforms.all;
};
}

View file

@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "authheaders";
version = "0.13.0";
version = "0.14.1";
src = fetchPypi {
inherit pname version;
sha256 = "935726b784cc636cbcfed2c977f1a6887dc60056806da4eff60db932c5896692";
sha256 = "4e601b5b54080019a2f548fadf80ddf9c5538615607c7fb602936404aafe67e2";
};
propagatedBuildInputs = [ authres dnspython dkimpy publicsuffix2 ]

View file

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-authorization";
version = "1.0.0";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "9a9fc16866b46387853381ab4fa0f84c1765e0afea5b0124709ea9fae10ee752";
sha256 = "0776edc4980be940a8602eefc0372b4d1a1fa26caa46e3c0234e0c7a0feda4ec";
};
propagatedBuildInputs = [

View file

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-containerinstance";
version = "9.0.0";
version = "9.1.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "041431c5a768ac652aac318a17f2a53b90db968494c79abbafec441d0be387ff";
sha256 = "22164b0c59138b37bc48ba6d476bf635152bc428dcb420b521a14b8c25c797ad";
};
propagatedBuildInputs = [

View file

@ -10,14 +10,14 @@
}:
buildPythonPackage rec {
version = "19.1.0";
version = "19.2.0";
pname = "azure-mgmt-network";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "62ef7fe8ba98e56412b434c9c35dc755b3c5e469f2c01bbed2ce0d12973a044b";
sha256 = "c8da1cf9523b89d4b268546ea087153372633962e31a4e6befae20d0ae308bac";
};
propagatedBuildInputs = [

View file

@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-recoveryservicesbackup";
version = "2.0.0";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "d3e60daefbc20a7fa381c7ad1498f4bf4bb5a1414c1c64188cc9d5c98c4e12ac";
sha256 = "1992486b28ddd6d4f597fd3004217cd2caf4f4dc8a0ce71226b5ae767ace3a18";
};
propagatedBuildInputs = [

View file

@ -34,6 +34,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace requirements.txt \
--replace "attrs~=20.3.0" "attrs" \
--replace "certifi~=2021.5.30" "certifi" \
--replace "h11~=0.9.0" "h11" \
--replace "httpcore~=0.11.1" "httpcore" \
--replace "httpx~=0.15.5" "httpx" \

View file

@ -9,12 +9,14 @@
, requirements-parser
, setuptools
, toml
, types-setuptools
, types-toml
, tox
}:
buildPythonPackage rec {
pname = "cyclonedx-python-lib";
version = "0.10.2";
version = "0.11.0";
format = "pyproject";
disabled = pythonOlder "3.6";
@ -23,7 +25,7 @@ buildPythonPackage rec {
owner = "CycloneDX";
repo = pname;
rev = "v${version}";
sha256 = "11sbnlbxighmmygrlgg4d31y70067pxzjsirwicaslfq95wgdlav";
sha256 = "sha256-FNEtVTcmVyhAri55GjlzQbg21YByAJjmKQvWaYh3xRw=";
};
nativeBuildInputs = [
@ -36,6 +38,8 @@ buildPythonPackage rec {
requirements-parser
setuptools
toml
types-setuptools
types-toml
];
checkInputs = [

View file

@ -5,6 +5,7 @@
, cloudpickle
, distributed
, fetchFromGitHub
, fetchpatch
, fsspec
, jinja2
, numpy
@ -22,7 +23,7 @@
buildPythonPackage rec {
pname = "dask";
version = "2021.09.1";
version = "2021.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -31,9 +32,19 @@ buildPythonPackage rec {
owner = "dask";
repo = pname;
rev = version;
sha256 = "sha256-+UkbXbWV5R/QtVb5rWm/5SA+IoWsIfBciL3vg138jkc=";
sha256 = "07ysrs46x5w8rc2df0j06rsw58ahcysd6lwjk5riqpjlpwdfmg7p";
};
patches = [
# remove with next bump
(fetchpatch {
name = "fix-tests-against-distributed-2021.10.0.patch";
url = "https://github.com/dask/dask/commit/cd65507841448ad49001cf27564102e2fb964d0a.patch";
includes = [ "dask/tests/test_distributed.py" ];
sha256 = "1i4i4k1lzxcydq9l80jyifq21ny0j3i47rviq07ai488pvx1r2al";
})
];
propagatedBuildInputs = [
cloudpickle
fsspec

View file

@ -19,13 +19,13 @@
buildPythonPackage rec {
pname = "distributed";
version = "2021.9.1";
version = "2021.10.0";
disabled = pythonOlder "3.6";
# get full repository need conftest.py to run tests
src = fetchPypi {
inherit pname version;
sha256 = "sha256-9N65ap2+9bBK0DCrkF3+1xuJPXmjaL1Xh7ISaLTtX/g=";
sha256 = "0kfq7lwv2n2wiws4v2rj36wx56jvkp2fl6zxg04p2lc3vcgha9za";
};
propagatedBuildInputs = [

View file

@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "django-environ";
version = "0.7.0";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "b99bd3704221f8b717c8517d8146e53fdee509d9e99056be560060003b92213e";
sha256 = "6f0bc902b43891656b20486938cba0861dc62892784a44919170719572a534cb";
};
# The testsuite fails to modify the base environment

View file

@ -4,7 +4,7 @@
buildPythonPackage rec {
pname = "easy-thumbnails";
version = "2.7.1";
version = "2.7.2";
meta = {
description = "Easy thumbnails for Django";
@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "f862949208d9066cd3d84ffcf9c2dbe9c7344ea6152b741e440f861eca46855c";
sha256 = "a7dd9cf97efaf70ba5d76484a962f08ba65b31f1681bc417257743650e9e8a8a";
};
propagatedBuildInputs = [ django pillow ];

View file

@ -27,14 +27,14 @@
buildPythonPackage rec {
pname = "exchangelib";
version = "4.5.2";
version = "4.6.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ecederstrand";
repo = pname;
rev = "v${version}";
sha256 = "1zz4p13ww9y5x0ifvcj652hgfbjqbnmr3snwrs0p315sc3y47ggm";
sha256 = "1lx5q3m3vhbx9xnm3v25xrrxvli1nh0lsza51ln4y3fk79ln91hv";
};
propagatedBuildInputs = [

View file

@ -1,31 +1,32 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, aiohttp
, ratelimit
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "goalzero";
version = "0.2.0";
version = "0.2.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "6cb67cf772a758225b2e23b394feb697e8cbfb1aff5a2d7a17a0d4ccf61e55cd";
sha256 = "sha256-PveHE317p5fGSxgx7LQkpRYF55HwdzpZFY8/F8s3CBQ=";
};
propagatedBuildInputs = [
aiohttp
ratelimit
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "goalzero" ];
pythonImportsCheck = [
"goalzero"
];
meta = with lib; {
description = "Goal Zero Yeti REST Api Library";

View file

@ -2,15 +2,15 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, dicttoxml
, pycryptodomex
, pytestCheckHook
, requests
, xmltodict
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "huawei-lte-api";
version = "1.4.18";
version = "1.5.2";
disabled = pythonOlder "3.4";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "Salamek";
repo = "huawei-lte-api";
rev = version;
sha256 = "1qaqxmh03j10wa9wqbwgc5r3ays8wfr7bldvsm45fycr3qfyn5fg";
sha256 = "sha256-xG0QTvjYW0/C/7NNhl/d024TSAe0TzgMknOXvNxrPOY=";
};
postPatch = ''
@ -27,7 +27,7 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [
dicttoxml
pycryptodomex
requests
xmltodict
];

View file

@ -7,12 +7,12 @@
}:
buildPythonPackage rec {
version = "4.0.8";
version = "4.0.9";
pname = "icalendar";
src = fetchPypi {
inherit pname version;
sha256 = "7508a92b4e36049777640b0ae393e7219a16488d852841a0e57b44fe51d9f848";
sha256 = "cc73fa9c848744843046228cb66ea86cd8c18d73a51b140f7c003f760b84a997";
};
buildInputs = [ setuptools ];

View file

@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = "deactivated";
repo = "python-iso3166";
rev = version;
sha256 = "0zs9za9dr2nl5srxir08yibmp6nffcapmzala0fgh8ny7y6rafrx";
sha256 = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0=";
};
checkInputs = [

View file

@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "jaeger-client";
version = "4.6.1";
version = "4.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "3bc27ad77e035efd0899f377a15f180467fec44b2afbf5be0660cc888a2a4ac3";
sha256 = "3157836edab8e2c209bd2d6ae61113db36f7ee399e66b1dcbb715d87ab49bfe0";
};
propagatedBuildInputs = [

View file

@ -8,13 +8,13 @@
buildPythonPackage rec {
pname = "jellyfish";
version = "0.8.8";
version = "0.8.9";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0506089cacf9b5897442134417b04b3c6610c19f280ae535eace390dc6325a5c";
sha256 = "90d25e8f5971ebbcf56f216ff5bb65d6466572b78908c88c47ab588d4ea436c2";
};
checkInputs = [ pytest unicodecsv ];

View file

@ -0,0 +1,37 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python, pkg-config, pango, cython, AppKit, pytestCheckHook }:
buildPythonPackage rec {
pname = "manimpango";
version = "0.3.1";
src = fetchFromGitHub {
owner = "ManimCommunity";
repo = pname;
rev = "v${version}";
sha256 = "ldZfvv5kloQ0uj0agxOP8cRh+Ix8f9Z0PT+pnhWYjiQ=";
};
postPatch = ''
substituteInPlace setup.cfg --replace "--cov --no-cov-on-fail" ""
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pango ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
propagatedBuildInputs = [
cython
];
preBuild = ''
${python.interpreter} setup.py build_ext --inplace
'';
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "manimpango" ];
meta = with lib; {
homepage = "https://github.com/ManimCommunity/ManimPango";
license = licenses.gpl3Plus;
description = "Binding for Pango";
maintainers = [ maintainers.angustrau ];
};
}

View file

@ -1,4 +1,10 @@
{ lib, buildPythonPackage, fetchPypi, pytest, future, numpy }:
{ lib
, buildPythonPackage
, fetchPypi
, future
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "MDP";
@ -9,11 +15,27 @@ buildPythonPackage rec {
sha256 = "ac52a652ccbaed1857ff1209862f03bf9b06d093b12606fb410787da3aa65a0e";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ future numpy ];
# Tests disabled because of missing dependencies not in nix
doCheck = false;
checkInputs = [ pytest ];
doCheck = true;
pythonImportsCheck = [ "mdp" "bimdp" ];
postPatch = ''
# https://github.com/mdp-toolkit/mdp-toolkit/issues/92
substituteInPlace mdp/utils/routines.py --replace numx.typeDict numx.sctypeDict
'';
checkPhase = ''
runHook preCheck
pytest --seed 7710873 mdp
pytest --seed 7710873 bimdp
runHook postCheck
'';
meta = with lib; {
description = "Library for building complex data processing software by combining widely used machine learning algorithms";

View file

@ -25,12 +25,12 @@
buildPythonPackage rec {
pname = "nbdime";
version = "3.1.0";
version = "3.1.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "12dc4390b355b26d07ac8d11d50efbcb54bae0ad5842b817131babd2f4567963";
sha256 = "67767320e971374f701a175aa59abd3a554723039d39fae908e72d16330d648b";
};
checkInputs = [

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "panacotta";
version = "0.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "u1f35c";
repo = "python-panacotta";
rev = "panacotta-${version}";
sha256 = "0v2fa18n50iy18n22klkgjral728iplj6yk3b6hjkzas5dk9wd9c";
};
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"panacotta"
];
meta = with lib; {
description = "Python API for controlling Panasonic Blu-Ray players";
homepage = "https://github.com/u1f35c/python-panacotta";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1,9 +1,8 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pythonOlder
, aiohttp
, async-timeout
, aresponses
, pytest-asyncio
, pytestCheckHook
@ -11,21 +10,38 @@
buildPythonPackage rec {
pname = "pyaftership";
version = "21.1.0";
version = "21.11.0";
format = "setuptools";
disabled = !isPy3k;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ludeeus";
repo = pname;
rev = version;
sha256 = "0jyzgwaijkp80whi58a0hgjzmnlczmd9vwn11z2m0j01kbdwznn5";
sha256 = "sha256-SN7fvI/+VHYn2eYQe5wp6lEZ73YeZbsiPjDiq/Ibk3Q=";
};
propagatedBuildInputs = [ aiohttp async-timeout ];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [ pytestCheckHook aresponses pytest-asyncio ];
pythonImportsCheck = [ "pyaftership" ];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
# Upstream is releasing with the help of a CI to PyPI, GitHub releases
# are not in their focus
substituteInPlace setup.py \
--replace 'version="main",' 'version="${version}",'
'';
pythonImportsCheck = [
"pyaftership"
];
meta = with lib; {
description = "Python wrapper package for the AfterShip API";

View file

@ -17,14 +17,16 @@
buildPythonPackage rec {
pname = "pymysensors";
version = "0.21.0";
version = "0.22.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "theolind";
repo = pname;
rev = version;
sha256 = "1k75gwvyzslyjr3cdx8b74fb302k2i7bda4q92rb75rhgp4gch55";
sha256 = "sha256-tDetHSpA5ZRvJoThI1zY6NPiDJHfWZbiMM5AF+xCNgk=";
};
propagatedBuildInputs = [
@ -44,7 +46,9 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "mysensors" ];
pythonImportsCheck = [
"mysensors"
];
meta = with lib; {
description = "Python API for talking to a MySensors gateway";

View file

@ -21,7 +21,7 @@ let
if stdenv.isDarwin then [ mesa_drivers.dev ] else [ ocl-icd ];
in buildPythonPackage rec {
pname = "pyopencl";
version = "2021.2.8";
version = "2021.2.9";
checkInputs = [ pytest ];
buildInputs = [ opencl-headers pybind11 ] ++ os-specific-buildInputs;
@ -30,7 +30,7 @@ in buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "15809b5d2b9a86ad01e31d176c00415436805ac884c4d197d9263bfe98280d76";
sha256 = "51425e65ec49c738eefe21b1eeb1f39245b01cc0ddfd495fbe1f8df33dbc6c9e";
};
# py.test is not needed during runtime, so remove it from `install_requires`

View file

@ -12,9 +12,10 @@
}:
buildPythonPackage rec {
pname = "PyRMVtransport";
pname = "pyrmvtransport";
version = "0.3.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
@ -34,14 +35,16 @@ buildPythonPackage rec {
lxml
];
pythonImportsCheck = [ "RMVtransport" ];
checkInputs = [
pytestCheckHook
pytest-asyncio
pytest-httpx
];
pythonImportsCheck = [
"RMVtransport"
];
meta = with lib; {
homepage = "https://github.com/cgtobi/PyRMVtransport";
description = "Get transport information from opendata.rmv.de";

View file

@ -1,7 +1,6 @@
{ lib
, aiohttp
, aresponses
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
@ -11,7 +10,7 @@
buildPythonPackage rec {
pname = "pytautulli";
version = "21.10.1";
version = "21.11.0";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -20,7 +19,7 @@ buildPythonPackage rec {
owner = "ludeeus";
repo = pname;
rev = version;
sha256 = "sha256-ckDqKPseOrGyWGvcPyj99cvQS+w4AHUkO4FHOIo9MDM=";
sha256 = "sha256-zODU3aN+8Fdw/GQ/EfZhn6kOuLDARKgLULzRw2+b2BM=";
};
postPatch = ''
@ -32,7 +31,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiohttp
async-timeout
];
checkInputs = [
@ -41,7 +39,9 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "pytautulli" ];
pythonImportsCheck = [
"pytautulli"
];
meta = with lib; {
description = "Python module to get information from Tautulli";

View file

@ -7,12 +7,12 @@ buildPythonPackage rec {
# upstream has abandoned project in favor of pytest-flake8
# retaining package to not break other packages
pname = "pytest-flakes";
version = "4.0.3";
version = "4.0.4";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "bf070c5485dad82d5b5f5d0eb08d269737e378492d9a68f5223b0a90924c7754";
sha256 = "551467a129331bed83596f3145d9eaf6541c26a03dc1b36419efef8ae231341b";
};
buildInputs = [ pytest ];

View file

@ -1,23 +1,32 @@
{ lib, fetchFromGitHub
, python, buildPythonPackage, isPy27
, pygame, pyglet, pysdl2, six
{ lib
, buildPythonPackage
, fetchFromGitHub
, pygame
, pyglet
, pysdl2
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytmx";
version = "3.27";
version = "3.30";
format = "setuptools";
disabled = isPy27;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bitcraft";
repo = "PyTMX";
# Release was not tagged.
rev = "5bb094c45e648d1de6c9ba8d8c8f31f7b83478e1";
sha256 = "0kpd39sr2ggwzh7nd3f5801mgwm57rzrrkqcgbcypdm8l2ayga3b";
rev = version;
sha256 = "sha256-d6VPmRdqUO6YhkOYYeXOEcrli/35IFkxK73AcZYHixw=";
};
propagatedBuildInputs = [ pygame pyglet pysdl2 six ];
propagatedBuildInputs = [
pygame
pyglet
pysdl2
];
pythonImportsCheck = [
"pytmx.pytmx"
@ -26,11 +35,14 @@ buildPythonPackage rec {
"pytmx.util_pysdl2"
];
checkPhase = ''
# Change into the test directory due to a relative resource path.
cd tests/pytmx
${python.interpreter} -m unittest test_pytmx
'';
checkInputs = [
pytestCheckHook
];
disabledTests = [
# AssertionError on the property name
"test_contains_reserved_property_name"
];
meta = with lib; {
homepage = "https://github.com/bitcraft/PyTMX";

View file

@ -0,0 +1,51 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-asyncio
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytraccar";
version = "0.10.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ludeeus";
repo = pname;
rev = version;
sha256 = "08f7rwvbc1h17lvgv9823ssd3p0vw7yzsg40lbkacgqqiv1hxfzs";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aresponses
pytestCheckHook
pytest-asyncio
];
postPatch = ''
# Upstream doesn't set version in the repo
substituteInPlace setup.py \
--replace 'version="master",' 'version="${version}",'
'';
pythonImportsCheck = [
"pytraccar"
];
meta = with lib; {
description = "Python library to handle device information from Traccar";
homepage = "https://github.com/ludeeus/pytraccar";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,51 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-asyncio
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyuptimerobot";
version = "21.11.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ludeeus";
repo = pname;
rev = version;
sha256 = "1nmmwp9m38b75lz51ypcj0qxnxm9wq4id5cggl0pn2rx6gwnbw9n";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aresponses
pytestCheckHook
pytest-asyncio
];
postPatch = ''
# Upstream doesn't set version in the repo
substituteInPlace setup.py \
--replace 'version="main",' 'version="${version}",'
'';
pythonImportsCheck = [
"pyuptimerobot"
];
meta = with lib; {
description = "Python API wrapper for Uptime Robot";
homepage = "https://github.com/ludeeus/pyuptimerobot";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -16,11 +16,11 @@
buildPythonPackage rec {
pname = "sagemaker";
version = "2.63.0";
version = "2.63.1";
src = fetchPypi {
inherit pname version;
sha256 = "b4d793217181f4ff1d269aa22e44f82e21a060ec9723301e1ae5e7d9082c76c8";
sha256 = "924847e9793b76d188049718aabbcad975296bb267812ad18e0279e7af0cb748";
};
pythonImportsCheck = [

View file

@ -1,37 +1,36 @@
{ lib, buildPythonPackage, fetchPypi, fetchpatch, mock
, future, six, setuptools-scm }:
{ lib
, buildPythonPackage
, fetchPypi
, mock
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "sievelib";
version = "1.1.1";
version = "1.2.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1sl1fnwr5jdacrrnq2rvzh4vv1dyxd3x31vnqga36gj8h546h7mz";
sha256 = "sha256-7cubQWqYWjzFt9f01+wBPjcuv5DmTJ2eAOIDEpmvOP0=";
};
patches = [
(fetchpatch {
name = "pip-10-pip-req.patch";
url = "https://github.com/tonioo/sievelib/commit/1deef0e2bf039a0e817ea6f19aaf1947dc9fafbc.patch";
sha256 = "0vaj73mcij9dism8vfaai82irh8j1b2n8gf9jl1a19d2l26jrflk";
})
(fetchpatch {
name = "requirements-in-setup-py.patch";
url = "https://github.com/tonioo/sievelib/commit/91f40ec226ea288e98379da01672a46dabd89fc9.patch";
sha256 = "0hph89xn16r353rg6f05bh0cgigmwdc736bya089qc03jhssrgns";
})
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ future six ];
checkInputs = [ mock ];
checkInputs = [
mock
pytestCheckHook
];
meta = {
pythonImportsCheck = [
"sievelib"
];
meta = with lib; {
description = "Client-side Sieve and Managesieve library written in Python";
homepage = "https://github.com/tonioo/sievelib";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ leenaars ];
longDescription = ''
A library written in Python that implements RFC 5228 (Sieve: An Email
Filtering Language) and RFC 5804 (ManageSieve: A Protocol for
@ -43,5 +42,8 @@ buildPythonPackage rec {
* Vacation (RFC 5230)
* Imap4flags (RFC 5232)
'';
homepage = "https://github.com/tonioo/sievelib";
license = licenses.mit;
maintainers = with maintainers; [ leenaars ];
};
}

View file

@ -16,7 +16,7 @@
buildPythonPackage rec {
pname = "staticjinja";
version = "4.1.0";
version = "4.1.1";
format = "pyproject";
disabled = pythonOlder "3.6";
@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "staticjinja";
repo = pname;
rev = version;
sha256 = "sha256-4IL+7ncJPd1e7k5oFRjQ6yvDjozcBAAZPf88biNTiLU=";
sha256 = "sha256-Bpgff3VaTylnYpkWoaWEiRWu4sYSP6dLbHDOjAhj7BM=";
};
nativeBuildInputs = [

View file

@ -14,6 +14,7 @@
, toolz
, tornado
, zict
, fetchpatch
}:
buildPythonPackage rec {
@ -28,6 +29,16 @@ buildPythonPackage rec {
sha256 = "sha256-0wZ1ldLFRAIL9R+gLfwsFbL+gvdORAkYWNjnDmeafm8=";
};
patches = [
# remove with next bump
(fetchpatch {
name = "fix-tests-against-distributed-2021.10.0.patch";
url = "https://github.com/python-streamz/streamz/commit/5bd3bc4d305ff40c740bc2550c8491be9162778a.patch";
sha256 = "1xzxcbf7yninkyizrwm3ahqk6ij2fmh0454iqjx2n7mmzx3sazx7";
includes = ["streamz/tests/test_dask.py"];
})
];
propagatedBuildInputs = [
networkx
six
@ -46,22 +57,23 @@ buildPythonPackage rec {
requests
];
disabledTests = [
# Disable test_tcp_async because fails on sandbox build
"test_partition_timeout"
"test_tcp_async"
"test_tcp"
];
disabledTestPaths = [
# Disable kafka tests
"streamz/tests/test_kafka.py"
];
pythonImportsCheck = [
"streamz"
];
disabledTests = [
# test_tcp_async fails on sandbox build
"test_tcp_async"
"test_tcp"
"test_partition_timeout"
# flaky
"test_from_iterable_backpressure"
];
disabledTestPaths = [
# disable kafka tests
"streamz/tests/test_kafka.py"
];
meta = with lib; {
description = "Pipelines to manage continuous streams of data";
homepage = "https://github.com/python-streamz/streamz";

View file

@ -17,7 +17,7 @@ buildPythonPackage rec {
requests flask flask-cors dbus-python
];
preConfigure = ''
postPatch = ''
substituteInPlace setup.py \
--replace 'flask==2.0.1' 'flask'
'';

View file

@ -1,19 +1,23 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, zeep
, pytestCheckHook
, pythonOlder
, zeep
}:
buildPythonPackage rec {
pname = "total-connect-client";
version = "2021.8.3";
version = "2021.11.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "craigjmidwinter";
repo = "total-connect-client";
rev = version;
sha256 = "sha256-2iTH/Him4iMZadkmBR8Rwlt3RCqDXzR6ZqNHciNiHIk=";
sha256 = "sha256-JXau+NmulnZ0gg2XsXD9EFv3j2FBMqVqzpT1XGvMZuA=";
};
propagatedBuildInputs = [
@ -33,7 +37,9 @@ buildPythonPackage rec {
"tests_request"
];
pythonImportsCheck = [ "total_connect_client" ];
pythonImportsCheck = [
"total_connect_client"
];
meta = with lib; {
description = "Interact with Total Connect 2 alarm systems";

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "tweepy";
version = "3.10.0";
version = "4.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "76e6954b806ca470dda877f57db8792fff06a0beba0ed43efc3805771e39f06a";
sha256 = "3bbb14a0ddef1ca8c9e8686ab2f647163afa02a6bab83507335ce647e9653a90";
};
doCheck = false;

View file

@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "types-setuptools";
version = "57.4.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1y0vx949wx5w4ra854ykwvgmdcwsb6v7jk29m4x1l79857sa16al";
};
# Module doesn't have tests
doCheck = false;
pythonImportsCheck = [ "setuptools-stubs" ];
meta = with lib; {
description = "Typing stubs for setuptools";
homepage = "https://github.com/python/typeshed";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "types-toml";
version = "0.10.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1jqh0vki1hccj391gnxpblim429sj56npgq2z749f8v9ay6qy7sw";
};
# Module doesn't have tests
doCheck = false;
pythonImportsCheck = [ "toml-stubs" ];
meta = with lib; {
description = "Typing stubs for toml";
homepage = "https://github.com/python/typeshed";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -16,11 +16,11 @@
buildPythonPackage rec {
pname = "vispy";
version = "0.9.1";
version = "0.9.3";
src = fetchPypi {
inherit pname version;
sha256 = "75e2923792b937fbb0eb817716430613b6a2b37331cffb13bf623913a76b1da1";
sha256 = "bc3aec042637947d4e999121bab224077a6f7ede4af745102f41737f7c81c05a";
};
patches = [

View file

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "xarray";
version = "0.19.0";
version = "0.20.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "3a365ce09127fc841ba88baa63f37ca61376ffe389a6c5e66d52f2c88c23a62b";
sha256 = "9c0bffd8b55fdef277f8f6c817153eb51fa4e58653a7ad92eaed9984164b7bdb";
};
nativeBuildInputs = [ setuptools-scm ];

View file

@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "zarr";
version = "2.10.1";
version = "2.10.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "29e90114f037d433752b3cf951e4a3cb6c6f67b6501a273439b4be4a824e4caf";
sha256 = "5c6ae914ab9215631bb95c09e76b9b9b4fffa70fec0c7bca26b68387d858ebe2";
};
nativeBuildInputs = [

View file

@ -1,5 +1,16 @@
{ lib, stdenv, fetchurl, jre, writeScript, common-updater-scripts
, git, nixfmt, nix, coreutils, gnused, disableRemoteLogging ? true }:
{ lib
, stdenv
, fetchurl
, jre
, writeScript
, common-updater-scripts
, git
, nixfmt
, nix
, coreutils
, gnused
, disableRemoteLogging ? true
}:
with lib;
@ -61,7 +72,7 @@ let
installCheckPhase = ''
runHook preInstallCheck
$out/bin/amm -c 'val foo = 21; println(foo * 2)' | grep 42
$out/bin/amm -h "$PWD" -c 'val foo = 21; println(foo * 2)' | grep 42
runHook postInstallCheck
'';
@ -80,7 +91,8 @@ let
maintainers = [ maintainers.nequissimus ];
};
};
in {
in
{
ammonite_2_12 = common {
scalaVersion = "2.12";
sha256 = "K8JII6SAmnBjMWQ9a3NqSLLuP1OLcbwobj3G+OCiLdA=";

View file

@ -56,13 +56,13 @@ with py.pkgs;
buildPythonApplication rec {
pname = "checkov";
version = "2.0.556";
version = "2.0.566";
src = fetchFromGitHub {
owner = "bridgecrewio";
repo = pname;
rev = version;
sha256 = "sha256-hEh7uqIvqkG1X9pxJFoI4dQngJ6nZXIAUR1TmXa2kZE=";
sha256 = "sha256-Eah4dK23jdHK7s0VF8FLd6KJzHP5YpdLGcM7IXgB880=";
};
nativeBuildInputs = with py.pkgs; [

Some files were not shown because too many files have changed in this diff Show more