Merge remote-tracking branch 'origin/staging-next' into staging

This commit is contained in:
K900 2025-04-22 07:50:27 +03:00
commit b47fbe4156
106 changed files with 2268 additions and 522 deletions

View file

@ -317,7 +317,7 @@
add `vimPlugins.notmuch-vim` to your (Neo)vim configuration if you want the
vim plugin.
- `prisma` and `prisma-engines` have been updated to version 6.5.0, which
- `prisma` and `prisma-engines` have been updated to version 6.6.0, which
introduces several breaking changes. See the
[Prisma ORM upgrade guide](https://www.prisma.io/docs/orm/more/upgrade-guides/upgrading-versions/upgrading-to-prisma-6)
for more information.

View file

@ -216,6 +216,8 @@
- [Pareto Security](https://paretosecurity.com/) is an alternative to corporate compliance solutions for companies that care about security but know it doesn't have to be invasive. Available as [services.paretosecurity](#opt-services.paretosecurity.enable)
- [Cursor](https://cursor.com/) is a vscode-based editor that uses AI to help you write code faster.
- [GNU Rush](https://gnu.org/software/rush/) is a Restricted User Shell, designed for systems providing limited remote access to their resources. Available as [programs.rush](#opt-programs.rush.enable).
- [ipfs-cluster](https://ipfscluster.io/), Pinset orchestration for IPFS. Available as [services.ipfs-cluster](#opt-services.ipfs-cluster.enable)
@ -433,6 +435,8 @@
- `services.homepage-dashboard` now requires the `allowedHosts` option to be set in accordance with the [documentation](https://gethomepage.dev/installation/#homepage_allowed_hosts).
- `luakit` has been updated to 2.4.0. If you use any website which uses IndexedDB or local storage and wish to retain the saved information, [some manual intervention may be required](https://luakit.github.io/news/luakit-2.4.0.html)
- `services.netbird.tunnels` was renamed to [`services.netbird.clients`](#opt-services.netbird.clients),
hardened (using dedicated less-privileged users) and significantly extended.

View file

@ -595,7 +595,6 @@ in
inherit handleTestOn;
package = pkgs.hadoop2;
};
haka = handleTest ./haka.nix { };
haste-server = handleTest ./haste-server.nix { };
haproxy = handleTest ./haproxy.nix { };
hardened = handleTest ./hardened.nix { };

View file

@ -3508,6 +3508,19 @@ final: prev: {
meta.hydraPlatforms = [ ];
};
dailies-nvim = buildVimPlugin {
pname = "dailies.nvim";
version = "2025-04-15";
src = fetchFromGitHub {
owner = "JachymPutta";
repo = "dailies.nvim";
rev = "4507da852e8166f35598409656166629141e1d8c";
sha256 = "1mk29mh6d2h6680yspd773jhwc87ajfb271cm8xyqnp1rgvml7m7";
};
meta.homepage = "https://github.com/JachymPutta/dailies.nvim/";
meta.hydraPlatforms = [ ];
};
darkearth-nvim = buildVimPlugin {
pname = "darkearth-nvim";
version = "2025-03-28";

View file

@ -17,6 +17,7 @@
python3,
# Misc dependencies
code-minimap,
dailies,
dasht,
deno,
direnv,
@ -890,6 +891,12 @@ in
'';
};
dailies-nvim = super.dailies-nvim.overrideAttrs {
runtimeDeps = [
dailies
];
};
darkearth-nvim = super.darkearth-nvim.overrideAttrs {
dependencies = [ self.lush-nvim ];
# Lua module used to build theme

View file

@ -268,6 +268,7 @@ https://github.com/FelikZ/ctrlp-py-matcher/,,
https://github.com/amiorin/ctrlp-z/,,
https://github.com/ctrlpvim/ctrlp.vim/,,
https://github.com/scottmckendry/cyberdream.nvim/,,
https://github.com/JachymPutta/dailies.nvim/,HEAD,
https://github.com/ptdewey/darkearth-nvim/,HEAD,
https://github.com/dart-lang/dart-vim-plugin/,,
https://github.com/rizzatti/dash.vim/,HEAD,

View file

@ -1273,11 +1273,11 @@
"vendorHash": "sha256-S3SBp17+qqA64tWydD5DYc9KahycJ+qDrdXvFwu6Lbc="
},
"sysdig": {
"hash": "sha256-9oj8rk4ltVcg5yPWU0WFxG1GvG3w9NM2MKi/UKM1U00=",
"hash": "sha256-FMXo2GJrrZZNrragGle1Sy6hwERoUoDTEKv3N2hJl00=",
"homepage": "https://registry.terraform.io/providers/sysdiglabs/sysdig",
"owner": "sysdiglabs",
"repo": "terraform-provider-sysdig",
"rev": "v1.52.0",
"rev": "v1.53.0",
"spdx": "MPL-2.0",
"vendorHash": "sha256-L+XwC7c4ph4lM0+BhHB9oi1R/Av8jlDcqHewOmtPU1s="
},

View file

@ -19,16 +19,16 @@ let
}:
buildGoModule rec {
pname = stname;
version = "1.29.3";
version = "1.29.5";
src = fetchFromGitHub {
owner = "syncthing";
repo = "syncthing";
tag = "v${version}";
hash = "sha256-dTDrKLAUfZ+12JX6P6cWRs1ArWnDRmfhNAh0ZTTWpYU=";
hash = "sha256-mM+llkF9aMFkMzLptcEz+nXyHcuMHt+dpnqkzJgOZqQ=";
};
vendorHash = "sha256-/t+TIW66A6jKZvDtp/WcldqdkP5PtC6eP/R4Fspywxc=";
vendorHash = "sha256-5U0lsGSO4v++eMvz2r1rG5i/XPLbJAbvM9V66BKE6A8=";
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
# Recent versions of macOS seem to require binaries to be signed when

View file

@ -1,16 +1,7 @@
{
lib,
rustPlatform,
dbus,
freetype,
gtk3,
libsoup_3,
openssl,
pkg-config,
webkitgtk_4_1,
libappindicator,
makeWrapper,
coolercontrol,
cmake,
stdenv,
qt6,
}:
{
@ -19,48 +10,26 @@
meta,
}:
rustPlatform.buildRustPackage {
stdenv.mkDerivation {
pname = "coolercontrol";
inherit version src;
sourceRoot = "${src.name}/coolercontrol-ui/src-tauri";
useFetchCargoVendor = true;
cargoHash = "sha256-C0oVtU6esXOkssKyJ4XzLV2vGCPbvVKgvf3wXo9L158=";
buildFeatures = [ "custom-protocol" ];
sourceRoot = "${src.name}/coolercontrol";
nativeBuildInputs = [
makeWrapper
pkg-config
cmake
qt6.wrapQtAppsHook
];
buildInputs = [
dbus
openssl
freetype
libsoup_3
gtk3
webkitgtk_4_1
libappindicator
qt6.qtbase
qt6.qtwebengine
];
checkFeatures = [ "custom-protocol" ];
# copy the frontend static resources to final build directory
# Also modify tauri.conf.json so that it expects the resources at the new location
postPatch = ''
mkdir -p ui-build
cp -R ${coolercontrol.coolercontrol-ui-data}/* ui-build/
substituteInPlace tauri.conf.json --replace-fail '"frontendDist": "../dist"' '"frontendDist": "ui-build"'
'';
postInstall = ''
install -Dm644 "${src}/packaging/metadata/org.coolercontrol.CoolerControl.desktop" -t "$out/share/applications/"
install -Dm644 "${src}/packaging/metadata/org.coolercontrol.CoolerControl.metainfo.xml" -t "$out/share/metainfo/"
install -Dm644 "${src}/packaging/metadata/org.coolercontrol.CoolerControl.png" -t "$out/share/icons/hicolor/256x256/apps/"
install -Dm644 "${src}/packaging/metadata/org.coolercontrol.CoolerControl.svg" -t "$out/share/icons/hicolor/scalable/apps/"
wrapProgram $out/bin/coolercontrol \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libappindicator ]}
'';
meta = meta // {

View file

@ -1,4 +1,4 @@
{ buildNpmPackage, autoPatchelfHook }:
{ buildNpmPackage }:
{
version,
@ -11,15 +11,7 @@ buildNpmPackage {
inherit version src;
sourceRoot = "${src.name}/coolercontrol-ui";
npmDepsHash = "sha256-t+QShKaXpQuEzeeu/ljBBEzeYsxqvMpx5waDZ2gyPAI=";
preBuild = ''
autoPatchelf node_modules/sass-embedded-linux-x64/dart-sass/src/dart
'';
nativeBuildInputs = [ autoPatchelfHook ];
dontAutoPatchelf = true;
npmDepsHash = "sha256-FFVCE3/E+eiTvTeU53cc1Mdbrl5J3+YgYUYltpnGXz0=";
postBuild = ''
cp -r dist $out

View file

@ -18,15 +18,14 @@ rustPlatform.buildRustPackage {
sourceRoot = "${src.name}/coolercontrold";
useFetchCargoVendor = true;
cargoHash = "sha256-5gqtSZs/unFobEl1MHec2uhGDrWnO6ITlYbB78VasZg=";
cargoHash = "sha256-ZyYyQcaYd3VZ7FL0Hki33JO3LscPfBT5gl+nw2cXvUs=";
buildInputs = [ libdrm ];
postPatch = ''
# copy the frontend static resources to a directory for embedding
mkdir -p ui-build
cp -R ${coolercontrol.coolercontrol-ui-data}/* ui-build/
substituteInPlace build.rs --replace-fail '"./resources/app"' '"./ui-build"'
cp -R ${coolercontrol.coolercontrol-ui-data}/* resources/app/
# Hardcode a shell
substituteInPlace src/repositories/utils.rs \

View file

@ -5,13 +5,13 @@
}:
let
version = "1.4.5";
version = "2.1.0";
src = fetchFromGitLab {
owner = "coolercontrol";
repo = "coolercontrol";
rev = version;
hash = "sha256-lRw5IcSrLM6aUajt2Ny1IUuGYcAjY1oUDZENyz0wVJI=";
hash = "sha256-xIc0ZecQGyjMQWVaucKomu7SbaHy+ymg5dkOjHjtJ9c=";
};
meta = {

View file

@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
qt6,
faad2,
@ -15,15 +16,29 @@
stdenv.mkDerivation rec {
pname = "abracadabra";
version = "3.0.0";
version = "3.1.0";
src = fetchFromGitHub {
owner = "KejPi";
repo = "AbracaDABra";
rev = "v${version}";
hash = "sha256-yCjMinDCoBTOC5Ks4MUd0MQeitfrIe8bI3Q4ahz36kQ=";
hash = "sha256-kH84xDK1873ekxIYlOw6M3kVH+Sm/Sofb3AAbs4XzE0=";
};
patches = [
# upstream patches, remove with next upgrade
(fetchpatch {
name = "no-qcustomplot";
url = "https://github.com/KejPi/AbracaDABra/commit/b0800cfe7abebf79f1edb915b3cf55fe96129017.patch";
hash = "sha256-8FiXix/riLvkxd2uTJCoUESInPiCsF6B+qaxRGbeUcs=";
})
(fetchpatch {
name = "fix-missing-include";
url = "https://github.com/KejPi/AbracaDABra/commit/8f88a3351fccea93c3c83bbfa94e98fb0823b0ae.patch";
hash = "sha256-9AloBgpUuewUBGM/NTHYUqd0uctJ17QJ0GA5RJN1GLQ=";
})
];
nativeBuildInputs = [
cmake
qt6.wrapQtAppsHook

View file

@ -13,14 +13,14 @@
python3Packages.buildPythonPackage rec {
pname = "boxflat";
version = "1.29.2";
version = "1.30.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Lawstorant";
repo = "boxflat";
tag = "v${version}";
hash = "sha256-ouq21n9G+wP4wpfpnX2gVJrCAANIHNjbIUnCmftwajI=";
hash = "sha256-6fzz3pq9fHoeGMT1Vz5Y8pKLdrprQEV5kLiZt7uJ1KI=";
};
build-system = [ python3Packages.setuptools ];

View file

@ -21,13 +21,13 @@
stdenv.mkDerivation rec {
pname = "bpftrace";
version = "0.23.1";
version = "0.23.2";
src = fetchFromGitHub {
owner = "bpftrace";
repo = "bpftrace";
rev = "v${version}";
hash = "sha256-5pNQuz2ffsixu4AMrw0lth5dHavO6I9Ew3ePOhtUiDE=";
hash = "sha256-AIjWF+MRnzEwvi1+XBxeiyJIX6059Hy8GgVwjZum2cc=";
};
buildInputs = with llvmPackages; [

View file

@ -25,14 +25,14 @@ with py.pkgs;
python3.pkgs.buildPythonApplication rec {
pname = "checkov";
version = "3.2.406";
version = "3.2.407";
pyproject = true;
src = fetchFromGitHub {
owner = "bridgecrewio";
repo = "checkov";
tag = version;
hash = "sha256-d92CdKfw7EMJyaKVzXmDm1OkFaozHf4zQ19CRQhAQ68=";
hash = "sha256-xVscXBrgaJhQDmtuvQ/eQsWS3Z7rpaOJSptWXaMsby0=";
};
pythonRelaxDeps = [

View file

@ -19,12 +19,12 @@ let
in
stdenv.mkDerivation rec {
pname = "circt";
version = "1.113.0";
version = "1.114.0";
src = fetchFromGitHub {
owner = "llvm";
repo = "circt";
rev = "firtool-${version}";
hash = "sha256-hzS9ztX2/n4PJIerwQ5DNIuV6975KgyitOvG2jHNM/w=";
hash = "sha256-wNgaOQaL5Vl9bvFMpYNijvyYxlSccGiSsxfk0QRpMCo=";
fetchSubmodules = true;
};

View file

@ -7,16 +7,16 @@
buildGoModule rec {
pname = "cirrus-cli";
version = "0.141.0";
version = "0.142.1";
src = fetchFromGitHub {
owner = "cirruslabs";
repo = "cirrus-cli";
rev = "v${version}";
hash = "sha256-ET7fQeEdev+CkH+DGiit2Y/UpISN+WYZl4+Fw3AxbGo=";
hash = "sha256-Vmms4L2am0kUHZuu5RZonZB8opIzgZ0rqgJTs4n9410=";
};
vendorHash = "sha256-BVR/EEEYkilKSJjHA31g3dsXm0LBJFzoFGkrLUa0B4k=";
vendorHash = "sha256-N1Gc/J+WvXmPa1RBy32B262zH71TQXZtHW2+3fipOmg=";
ldflags = [
"-X github.com/cirruslabs/cirrus-cli/internal/version.Version=v${version}"

View file

@ -5,13 +5,13 @@
"packages": {
"": {
"dependencies": {
"@anthropic-ai/claude-code": "^0.2.69"
"@anthropic-ai/claude-code": "^0.2.74"
}
},
"node_modules/@anthropic-ai/claude-code": {
"version": "0.2.69",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-0.2.69.tgz",
"integrity": "sha512-41rEx924nNM8k8pJqj8aeLOYtQYFyw94aKmKQdBUoewSPIpySiJVC7VUDxm7Q+k+oJhnXB6YQY/8+qxofyuJNA==",
"version": "0.2.74",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-0.2.74.tgz",
"integrity": "sha512-/ACVmaEyWTPuFeRAujnCYcDI9cBqY8J4jUgZYQU+71Px8KMmWL6Sk0LrdfQsZLtRUHLRtjUF5qvTM6Nuzxl5dQ==",
"hasInstallScript": true,
"license": "SEE LICENSE IN README.md",
"bin": {

View file

@ -6,14 +6,14 @@
buildNpmPackage rec {
pname = "claude-code";
version = "0.2.69";
version = "0.2.74";
src = fetchzip {
url = "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-${version}.tgz";
hash = "sha256-ShVescHfUhRwctlHLukRic73yUvuc5LP7qev3Hk1qWg=";
hash = "sha256-J1lJePL0EjpdjHF/d+AxfKpIoJqAJNUtZpsFJO40+uM=";
};
npmDepsHash = "sha256-7jbvsIXulG6dJOnMc5MjDm/Kcyndm4jDSdj85eSp/hc=";
npmDepsHash = "sha256-IWeNlRylGZlbXCvyeb433XQdqEUu2rmQvyn2y//6Kew=";
postPatch = ''
cp ${./package-lock.json} package-lock.json

View file

@ -48,26 +48,26 @@
}:
let
pname = "cursor";
version = "0.48.8";
version = "0.48.9";
inherit (stdenvNoCC) hostPlatform;
sources = {
x86_64-linux = fetchurl {
url = "https://downloads.cursor.com/production/7801a556824585b7f2721900066bc87c4a09b743/linux/x64/Cursor-0.48.8-x86_64.AppImage";
hash = "sha256-/5mwElzN0uURppWCLYPPECs6GzXtB54v2+jQD1RHcJE=";
url = "https://downloads.cursor.com/production/61e99179e4080fecf9d8b92c6e2e3e00fbfb53f4/linux/x64/Cursor-0.48.9-x86_64.AppImage";
hash = "sha256-Rw96CIN+vL1bIj5o68gWkHeiqgxExzbjwcW4ad10M2I=";
};
aarch64-linux = fetchurl {
url = "https://downloads.cursor.com/production/7801a556824585b7f2721900066bc87c4a09b743/linux/arm64/Cursor-0.48.8-aarch64.AppImage";
hash = "sha256-OXGUjTNwc0VZ8Q7arMyhfhN/bPTOCYS9Bfi1I4TJCXY=";
url = "https://downloads.cursor.com/production/61e99179e4080fecf9d8b92c6e2e3e00fbfb53f4/linux/arm64/Cursor-0.48.9-aarch64.AppImage";
hash = "sha256-RMDYoQSIO0jukhC5j1TjpwCcK0tEnvoVpXbFOxp/K8o=";
};
x86_64-darwin = fetchurl {
url = "https://downloads.cursor.com/production/7801a556824585b7f2721900066bc87c4a09b743/darwin/x64/Cursor-darwin-x64.dmg";
hash = "sha256-uLKOjo4aYK0r69a0jFevzE4bJJ0mqg0pJEPYdtlo8tU=";
url = "https://downloads.cursor.com/production/61e99179e4080fecf9d8b92c6e2e3e00fbfb53f4/darwin/x64/Cursor-darwin-x64.dmg";
hash = "sha256-172BGNNVvpZhk99rQN19tTsxvRADjmtEzgkZazke/v4=";
};
aarch64-darwin = fetchurl {
url = "https://downloads.cursor.com/production/7801a556824585b7f2721900066bc87c4a09b743/darwin/arm64/Cursor-darwin-arm64.dmg";
hash = "sha256-xSmBSK9pum6RlvXnyhNA1HM6Y88R2bRASJkLTHfxzMY=";
url = "https://downloads.cursor.com/production/61e99179e4080fecf9d8b92c6e2e3e00fbfb53f4/darwin/arm64/Cursor-darwin-arm64.dmg";
hash = "sha256-IQ4UZwEBVGMaGUrNVHWxSRjbw8qhLjOJ2KYc9Y26LZU=";
};
};

View file

@ -11,7 +11,7 @@
stdenv.mkDerivation rec {
pname = "codeql";
version = "2.20.7";
version = "2.21.0";
dontConfigure = true;
dontBuild = true;
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
src = fetchzip {
url = "https://github.com/github/codeql-cli-binaries/releases/download/v${version}/codeql.zip";
hash = "sha256-PYTKW+zfmOuJr5BClB3JQKeuZH986uct0m4WyDTxxnQ=";
hash = "sha256-pYNjb7jvYNgL6H+jhH1eviwk67JCDt1S5F2yxRaAO6g=";
};
nativeBuildInputs = [

View file

@ -8,19 +8,21 @@
conceal,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "conceal";
version = "0.5.5";
version = "0.6.1";
src = fetchFromGitHub {
owner = "TD-Sky";
repo = "conceal";
rev = "v${version}";
sha256 = "sha256-BYLDSRgBba6SoGsL/NTV/OTG1/V9RSr8lisj42JqBRM=";
tag = "v${finalAttrs.version}";
hash = "sha256-kgJcxckXfwnKZ3MyJ+GE1LiQmu9YdfqFrtL9gBJ330E=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-yCHN7N+hRrWfuCEBA6gh2S/rRP+ZkHCjFBGGY9/LTb4=";
cargoHash = "sha256-Ym/HnUOLIKfCFWgusx92QeQYaNp9tfrhg5V1h02q3e0=";
env.CONCEAL_GEN_COMPLETIONS = "true";
nativeBuildInputs = [ installShellFiles ];
@ -36,17 +38,17 @@ rustPlatform.buildRustPackage rec {
passthru.tests = testers.testVersion {
package = conceal;
command = "conceal --version";
version = "conceal ${version}";
version = "conceal ${finalAttrs.version}";
};
meta = with lib; {
meta = {
description = "Trash collector written in Rust";
homepage = "https://github.com/TD-Sky/conceal";
license = licenses.mit;
maintainers = with maintainers; [
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
jedsek
kashw2
];
broken = stdenv.hostPlatform.isDarwin;
};
}
})

View file

@ -7,16 +7,16 @@
buildGoModule rec {
pname = "coroot-node-agent";
version = "1.23.16";
version = "1.23.17";
src = fetchFromGitHub {
owner = "coroot";
repo = "coroot-node-agent";
rev = "v${version}";
hash = "sha256-gd43AL8fnRU7zvQj5GEqX5sbX8JxISXdNfKbzx1eJuE=";
hash = "sha256-IHOS0Xh0JAWC4NvRbpTQZJ+Se5YjtT+D2gK0w1YaprY=";
};
vendorHash = "sha256-czrw7KnBRdoY/SuiZznhViUN9C+BYjH8difcQPFIHU8=";
vendorHash = "sha256-dX/hUWuHn5qV/wOyaaA+hnL6pp1OJ6Bw4W/UY8u1UZc=";
buildInputs = [ systemdLibs ];

View file

@ -4,22 +4,22 @@
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "datafusion-cli";
version = "45.0.0";
version = "47.0.0";
src = fetchFromGitHub {
name = "datafusion-cli-source";
owner = "apache";
repo = "arrow-datafusion";
rev = version;
sha256 = "sha256-XIxUp4i68psNtKoFR/uVJHCToz681m2q8qUhtMQKCLo=";
tag = finalAttrs.version;
hash = "sha256-IKG0sLF5LAS2Tch3hdzsGHwAf2k43aVvMo1a29pxza0=";
};
sourceRoot = "${src.name}/datafusion-cli";
useFetchCargoVendor = true;
cargoHash = "sha256-qJjZ4Um2K27IJy7w99kJGs5ZB1y57xd6P896+Hm2GOg=";
cargoHash = "sha256-kl2+cVQhEkRsQWO8w3WEtXAoVIqj3s3IcbRBn175yxg=";
buildAndTestSubdir = "datafusion-cli";
checkFlags = [
# Some tests not found fake path
@ -35,12 +35,15 @@ rustPlatform.buildRustPackage rec {
"--skip=tests::test_parquet_metadata_works_with_strings"
];
meta = with lib; {
# timeout
doCheck = false;
meta = {
description = "cli for Apache Arrow DataFusion";
mainProgram = "datafusion-cli";
homepage = "https://arrow.apache.org/datafusion";
changelog = "https://github.com/apache/arrow-datafusion/blob/${version}/datafusion/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
changelog = "https://github.com/apache/arrow-datafusion/blob/${finalAttrs.version}/datafusion/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ happysalada ];
};
}
})

View file

@ -6,32 +6,44 @@
python3.pkgs.buildPythonApplication rec {
pname = "distgen";
version = "1.18";
version = "2.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-lS6OeEaPiK8Pskuoww9KwyNhKnGQ+dHhdPmZn1Igj0Q=";
hash = "sha256-VG9EX9LHoZamBM3PEm5qGpViK39qD+PA8vcHTzvsW+o=";
};
nativeCheckInputs = with python3.pkgs; [
pytest
mock
build-system = with python3.pkgs; [
setuptools
argparse-manpage
];
propagatedBuildInputs = with python3.pkgs; [
dependencies = with python3.pkgs; [
distro
jinja2
six
pyyaml
];
checkPhase = "make test-unit PYTHON=${python3.executable}";
nativeCheckInputs = with python3.pkgs; [
pytest
mock
];
meta = with lib; {
checkPhase = ''
runHook preCheck
make test-unit PYTHON=${python3.executable}
runHook postCheck
'';
meta = {
description = "Templating system/generator for distributions";
mainProgram = "dg";
license = licenses.gpl2Plus;
homepage = "https://distgen.readthedocs.io/";
maintainers = with maintainers; [ bachp ];
license = lib.licenses.gpl2Plus;
homepage = "https://distgen.readthedocs.io";
maintainers = with lib.maintainers; [ bachp ];
};
}

1241
pkgs/by-name/fr/freerouting/deps.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,81 @@
{
lib,
stdenv,
fetchFromGitHub,
makeBinaryWrapper,
makeDesktopItem,
jdk,
gradle,
copyDesktopItems,
jre,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "freerouting";
version = "2.1.0";
src = fetchFromGitHub {
owner = "freerouting";
repo = "freerouting";
tag = "v${finalAttrs.version}";
hash = "sha256-K4fwbvSPuKAAnIcTDBSAI1/6HuCB7c9rCGTJcyAj5dQ=";
};
gradleBuildTask = "executableJar";
nativeBuildInputs = [
makeBinaryWrapper
jdk
gradle
copyDesktopItems
];
mitmCache = gradle.fetchDeps {
inherit (finalAttrs) pname;
data = ./deps.json;
};
__darwinAllowLocalNetworking = true;
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/freerouting}
cp build/libs/freerouting-executable.jar $out/share/freerouting
makeWrapper ${lib.getExe jre} $out/bin/freerouting \
--add-flags "-jar $out/share/freerouting/freerouting-executable.jar"
install -Dm644 ${finalAttrs.src}/design/icon/freerouting_icon_256x256_v1.png \
$out/share/icons/hicolor/256x256/apps/freerouting.png
runHook postInstall
'';
desktopItems = [
(makeDesktopItem {
name = finalAttrs.pname;
exec = "freerouting";
icon = "freerouting";
desktopName = "Freerouting";
comment = finalAttrs.meta.description;
categories = [
"Electricity"
"Engineering"
"Graphics"
];
})
];
meta = {
description = "Advanced PCB auto-router";
homepage = "https://www.freerouting.org";
changelog = "https://github.com/freerouting/freerouting/releases/tag/v${finalAttrs.version}";
longDescription = ''
Freerouting is an advanced autorouter for all PCB programs that support
the standard Specctra or Electra DSN interface. '';
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ srounce ];
platforms = with lib.platforms; linux ++ darwin;
mainProgram = "freerouting";
};
})

View file

@ -2,42 +2,31 @@
lib,
fetchFromGitHub,
buildGoModule,
versionCheckHook,
nix-update-script,
}:
buildGoModule rec {
pname = "gollama";
version = "1.28.5";
version = "1.33.0";
src = fetchFromGitHub {
owner = "sammcj";
repo = "gollama";
tag = "v${version}";
hash = "sha256-7wCBflX34prZJl4HhZUU2a2qHxaBs1fMKHpwE0vX1GE=";
hash = "sha256-hgIOOBfE9t1/oUmFvmtHyuWaOgftzxCiT3xmEJ6d45I=";
};
postPatch = ''
substituteInPlace main.go \
--replace-fail 'Version = "1.28.0"' 'Version = "${version}"'
'';
vendorHash = "sha256-Y5yg54em+vqoWXxS3JVQVPEM+fLXgoblmY+48WpxSCQ=";
vendorHash = "sha256-AE3uD9Si4Gm1W+jIvwg9kQFqqgJQLAh7eLPs8qtJAGI=";
doCheck = false;
ldFlags = [
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
];
# FIXME: error when running `env -i gollama`:
# "Error initializing logging: $HOME is not defined"
doInstallCheck = false;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "-v";
passthru.updateScript = nix-update-script { };
meta = {
description = "Go manage your Ollama models";

View file

@ -9,17 +9,17 @@
rustPlatform.buildRustPackage rec {
pname = "gotify-desktop";
version = "1.4.0";
version = "1.4.1";
src = fetchFromGitHub {
owner = "desbma";
repo = "gotify-desktop";
rev = version;
sha256 = "sha256-P6zZAd3381/JamrEdbZRVFouhDsPNy1cNAjy4K3jGro=";
sha256 = "sha256-QhzvY7MeOvrL+xxeV7gPXWRo3EinMMdS9A7oh38gYjU=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-od8eaOwf5k//HuzD4CNCOu8JGJv1P1TJTW0shgEnFDc=";
cargoHash = "sha256-fNOC8atr5/LgQcGf9jdxec9AQt3YIR+hem/xL10YYqY=";
nativeBuildInputs = [ pkg-config ];

View file

@ -10,17 +10,17 @@
rustPlatform.buildRustPackage rec {
pname = "gql";
version = "0.37.0";
version = "0.38.0";
src = fetchFromGitHub {
owner = "AmrDeveloper";
repo = "GQL";
rev = version;
hash = "sha256-5n95+BcdjdjZyT3fvRv8acPV3jK9IppsKklI0zuA5mw=";
hash = "sha256-/cTU+LBoXnMzNKd18nYoGkEN/cfUVQIDFBFQNrmdWuM=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-2JaPT/83672qnF2y3YKFhnQ/hNQ/GXnHfRcQIn0rnc8=";
cargoHash = "sha256-4sdbTcDDvA7MYMiTKKAWg0sYnBPeVj3eBCo7HTZYkUY=";
nativeBuildInputs = [
pkg-config

View file

@ -10,17 +10,17 @@
rustPlatform.buildRustPackage rec {
pname = "inputplumber";
version = "0.52.1";
version = "0.53.0";
src = fetchFromGitHub {
owner = "ShadowBlip";
repo = "InputPlumber";
tag = "v${version}";
hash = "sha256-Jgy6fHR1gdRX6HGMSA6QkoNq9eZBwM4P3f972CwsGUk=";
hash = "sha256-pb1vyXJh0nmW8kc6hp6dgr84419Qcm6rjatzkjC4QNY=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-/E2pmz1ohYQouLDnBCUYfpRWMc+rNEZ0FJR+RsSli04=";
cargoHash = "sha256-zUK73enMMvrF196ILLNIx77IkvaMtTdbMRJXd8fzMzQ=";
nativeBuildInputs = [
pkg-config

View file

@ -5,7 +5,7 @@
}:
let
version = "0.8.0";
version = "0.9.0";
in
rustPlatform.buildRustPackage {
inherit version;
@ -15,11 +15,11 @@ rustPlatform.buildRustPackage {
owner = "sectordistrict";
repo = "intentrace";
tag = "v${version}";
hash = "sha256-ONOYxtY4e+lxjp1nQ7L8O0xwhEqS3f56KmDFtNo4s80=";
hash = "sha256-0TrM6Kb+5v7d98VJOsZXtsYZ4BGIbqXA3B6d4gqvl90=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-EyOCs7PpsTd2NQbqcXb4ZlZPPTvHQlraxy5liTA2hcE=";
cargoHash = "sha256-XHhu5B2GyZvKj9egbSOLJ7W/4BNdcGDYHYmb97Lhcpc=";
meta = {
description = "Prettified Linux syscall tracing tool (like strace)";

View file

@ -1,5 +1,6 @@
{
fetchFromGitHub,
fetchpatch,
lib,
python3Packages,
}:
@ -16,6 +17,20 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-/lUs4EuifHKKyA8QiLsbqz0h6mxJpsFMjovpYE8+SxY=";
};
patches = [
# Port iSponsorBlockTV to pyytlounge v3
(fetchpatch {
url = "https://github.com/lukegb/iSponsorBlockTV/commit/89b7b1c029cfbe3b5a481647cdd2d03dec5259ce.patch";
hash = "sha256-ISMrNrfPTnEbb0lZbREf+kAniJopWx3FePMGFm4ycJY=";
})
# Update setup_wizard for Textual v3
(fetchpatch {
url = "https://github.com/lukegb/iSponsorBlockTV/commit/89dd1d65335689c73a78509689396888599bbe58.patch";
hash = "sha256-hhWXcqNK3b3mXLCK7W0eXNWgP4lPSl6qgB59Fx8+yeA=";
})
];
build-system = with python3Packages; [
hatchling
hatch-requirements-txt

View file

@ -7,13 +7,13 @@
stdenv.mkDerivation rec {
pname = "jitterentropy";
version = "3.6.2";
version = "3.6.3";
src = fetchFromGitHub {
owner = "smuellerDD";
repo = "jitterentropy-library";
rev = "v${version}";
hash = "sha256-A1Y+7CqzoQ6xoTwWU8gfq+dYJ+PiIpqtOOZSL0uVby4=";
hash = "sha256-A7a0kg9JRiNNKJbLJu5Fbu6ZgCwv3+3oDhZr3jwNXmM=";
};
nativeBuildInputs = [ cmake ];

View file

@ -8,16 +8,16 @@
buildGoModule rec {
pname = "kics";
version = "2.1.6";
version = "2.1.7";
src = fetchFromGitHub {
owner = "Checkmarx";
repo = "kics";
tag = "v${version}";
hash = "sha256-q1vpMXnW/tnOXjxnqp9KQHe6hWx4/DXXqLnR4+e0+vM=";
hash = "sha256-fw0OjSR9f0EuXq+QcRwt1+k22UdhPI1lNmSUahckimE=";
};
vendorHash = "sha256-Cp4kfAViBUkC7LMZFUrJtHKrIYxsc25fqbuw2a5Eh9w=";
vendorHash = "sha256-1Wr8649Yy3cAhj46YuRiHBiFtdWq/4M5H5lnLH+ThBE=";
subPackages = [ "cmd/console" ];

View file

@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchgit,
autoreconfHook,
libtool,
openssl,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libretls";
version = "3.8.1";
src = fetchgit {
url = "https://git.causal.agency/libretls";
tag = finalAttrs.version;
hash = "sha256-cFu9v8vOkfvIj/OfD0Er3n+gbH1h1CHOHA6a0pJuwXY=";
};
nativeBuildInputs = [
pkg-config
autoreconfHook
libtool
];
autoreconfFlags = [
"--force"
"--install"
];
buildInputs = [ openssl ];
strictDeps = true;
meta = {
description = "Libtls for OpenSSL";
homepage = "https://git.causal.agency/libretls/about/";
changelog = "https://git.causal.agency/libretls/tag/?h=${finalAttrs.version}";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ mtrsk ];
};
})

View file

@ -209,8 +209,9 @@ stdenv.mkDerivation (finalAttrs: {
npm rebuild --verbose
# remove most references to electron.headers
# TODO: track down the remaining references
find node_modules -type f \( -name "*.target.mk" -o -name "config.gypi" -o -name "Makefile" \) -delete
shopt -s globstar
rm -r node_modules/**/{*.target.mk,config.gypi,Makefile,Release/.deps}
shopt -u globstar
popd

View file

@ -10,22 +10,21 @@
pkg-config,
sqlite,
stdenv,
webkitgtk_4_0,
webkitgtk_4_1,
wrapGAppsHook3,
}:
let
inherit (luajitPackages) luafilesystem;
in
stdenv.mkDerivation (finalAttrs: {
pname = "luakit";
version = "2.3.3";
version = "2.4.0";
src = fetchFromGitHub {
owner = "luakit";
repo = "luakit";
rev = finalAttrs.version;
hash = "sha256-DtoixcLq+ddbacTAo+Qq6q4k1i6thirACw1zqUeOxXo=";
hash = "sha256-6OPcGwWQyP+xWVKGjwEfE8Xnf1gcwwbO+FbvA1x0c8M=";
};
nativeBuildInputs = [
@ -41,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
gtk3
luafilesystem
sqlite
webkitgtk_4_0
webkitgtk_4_1
]
++ (with gst_all_1; [
gst-libav
@ -65,6 +64,7 @@ stdenv.mkDerivation (finalAttrs: {
makeFlags = [
"DEVELOPMENT_PATHS=0"
"USE_LUAJIT=1"
"LUA_BIN_NAME=luajit"
"INSTALLDIR=${placeholder "out"}"
"PREFIX=${placeholder "out"}"
"USE_GTK3=1"
@ -95,7 +95,9 @@ stdenv.mkDerivation (finalAttrs: {
'';
license = lib.licenses.gpl3Only;
mainProgram = "luakit";
maintainers = with lib.maintainers; [ ];
maintainers = with lib.maintainers; [
griffi-gh
];
platforms = lib.platforms.unix;
};
})

View file

@ -7,16 +7,16 @@
buildGo124Module rec {
pname = "matrix-alertmanager-receiver";
version = "2025.3.26";
version = "2025.4.16";
src = fetchFromGitHub {
owner = "metio";
repo = "matrix-alertmanager-receiver";
tag = version;
hash = "sha256-IIuYsuNEQheMZmhU06kkz9wP75s53Nl/nGDqdlebnL8=";
hash = "sha256-QxBe9WkUg6TTAgxC29kLyQzJSR6m0to0ayH+0vT9pgQ=";
};
vendorHash = "sha256-aMk82HLfuIP+HEFinVUf4WXZC3y6RAUhf/e+ZwXD46k=";
vendorHash = "sha256-okaNjcA1fFChqaCooviPDW2VZTae9pUEGKNOTUxSSQ0=";
ldflags = [
"-s"

View file

@ -8,16 +8,16 @@
}:
let
pname = "matrix-media-repo";
version = "1.3.7";
version = "1.3.8";
src = fetchFromGitHub {
owner = "t2bot";
repo = "matrix-media-repo";
rev = "v${version}";
hash = "sha256-trVn+Mn98aJLQCpQX1+qps/uuA5+8zeDoM94eauxHO8=";
hash = "sha256-KP1ZyHqeATxk1PCLuM6lPk+GB4Rd0f7ppKVETIURx28=";
};
vendorHash = "sha256-fKDdL7C3L33caoXxlutzoND2izB5GH+5qTeojTskIUg=";
vendorHash = "sha256-+sHy4Lgufs5jdN/V9W06U4dOZrsPiX87zmR1UwGHhQg=";
asset-compiler = buildGoModule {
pname = "${pname}-compile_assets";

View file

@ -14,13 +14,13 @@
stdenv.mkDerivation rec {
pname = "mongoc";
version = "1.30.2";
version = "2.0.0";
src = fetchFromGitHub {
owner = "mongodb";
repo = "mongo-c-driver";
tag = version;
hash = "sha256-RDUrD8MPZd1VBePyR+L5GiT/j5EZIY1KHLQKG5MsuSM=";
hash = "sha256-GKXfTrZqdfgxzNi0fM9Ik4XeZGn9IlX75+cXmm5tXPY=";
};
nativeBuildInputs = [

View file

@ -16,12 +16,12 @@
stdenv.mkDerivation rec {
pname = "morgen";
version = "3.6.11";
version = "3.6.12";
src = fetchurl {
name = "morgen-${version}.deb";
url = "https://dl.todesktop.com/210203cqcj00tw1/versions/${version}/linux/deb";
hash = "sha256-vn3V7TXWMPesZt+65FAeNzUo8n4P9XfSIFnCDvLaZOI=";
hash = "sha256-1shqINMYy+yoMsI99+tvJcqWs8dScmmV7X9QTYZ9EfA=";
};
nativeBuildInputs = [

View file

@ -6,7 +6,7 @@
}:
let
version = "0.31.1-17664948";
version = "0.32.1-18110069";
urlVersion = lib.replaceStrings [ "." ] [ "-" ] version;
in
@ -16,7 +16,7 @@ stdenvNoCC.mkDerivation {
src = fetchzip {
url = "https://necessegame.com/content/server/${urlVersion}/necesse-server-linux64-${urlVersion}.zip";
hash = "sha256-H7/fc3zkuEMuv9Uq00TLSLF4rT8+UWsofnuCFrmUtjU=";
hash = "sha256-qeFr4dl4MD2rMVD+PIu/3zcRvCWOT1Bj8JB0FWXP1Yw=";
};
# removing packaged jre since we use our own
@ -39,6 +39,8 @@ stdenvNoCC.mkDerivation {
runHook postInstall
'';
passthru.updateScript = ./update.sh;
meta = {
homepage = "https://necessegame.com/server/";
description = "Dedicated server for Necesse";

View file

@ -0,0 +1,15 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pup common-updater-scripts
set -eu -o pipefail
version=$(
curl -s http://www.necessegame.com/server \
| pup 'a[href*="linux64"] text{}' \
| awk -F'[v ]' '/Linux64/ {print $4"-"$6}' \
| sort -Vu \
| tail -n1
)
[[ $version =~ ^[0-9]+\.[0-9]+\.[0-9]+\-[0-9]+$ ]] \
&& update-source-version necesse-server "$version"

View file

@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
boost,
python3,
@ -15,7 +14,6 @@
enableGui ? false,
wrapQtAppsHook ? null,
qtbase ? null,
OpenGL ? null,
}:
let
@ -25,42 +23,33 @@ let
};
pname = "nextpnr";
version = "0.7";
version = "0.8";
main_src = fetchFromGitHub {
owner = "YosysHQ";
repo = "nextpnr";
rev = "${pname}-${version}";
hash = "sha256-YIAQcCg9RjvCys1bQ3x+sTgTmnmEeXVbt9Lr6wtg1pA=";
name = "nextpnr";
prjxray_src = fetchFromGitHub {
owner = "f4pga";
repo = "prjxray";
rev = "faf9c774a340e39cf6802d009996ed6016e63521";
hash = "sha256-BEv7vJoOHWHZoc9EXbesfwFFClkuiSpVwHUrj4ahUcA=";
};
test_src = fetchFromGitHub {
owner = "YosysHQ";
repo = "nextpnr-tests";
rev = "00c55a9eb9ea2e062b51fe0d64741412b185d95d";
hash = "sha256-83suMftMtnaRFq3T2/I7Uahb11WZlXhwYt6Q/rqi2Yo=";
name = "nextpnr-tests";
prjbeyond_src = fetchFromGitHub {
owner = "YosysHQ-GmbH";
repo = "prjbeyond-db";
rev = "06d3b424dd0e52d678087c891c022544238fb9e3";
hash = "sha256-nmyFFUO+/J2lb+lPATEjdYq0d21P1fN3N94JXR8brZ0=";
};
in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
inherit pname version;
srcs = [
main_src
test_src
];
sourceRoot = main_src.name;
patches = [
(fetchpatch {
name = "boost-1_85-fixes.patch";
url = "https://github.com/YosysHQ/nextpnr/commit/f085950383155a745cf2e3c0f28c468d01ff5fd7.patch";
hash = "sha256-ihN3S4eeBQSrKbHrGinE/SlIY3QDytYCaO9Mtu36n6c=";
})
];
src = fetchFromGitHub {
owner = "YosysHQ";
repo = "nextpnr";
tag = "${pname}-${version}";
hash = "sha256-lconcmLACxWxC41fTIkUaGbfp79G98YdHA4mRJ9Qo1w=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
@ -79,35 +68,30 @@ stdenv.mkDerivation {
let
# the specified version must always start with "nextpnr-", so add it if
# missing (e.g. if the user overrides with a git hash)
rev = main_src.rev;
rev = src.rev;
version = if (lib.hasPrefix "nextpnr-" rev) then rev else "nextpnr-${rev}";
in
[
"-DCURRENT_GIT_VERSION=${version}"
"-DARCH=generic;ice40;ecp5;gowin;himbaechel"
"-DARCH=generic;ice40;ecp5;himbaechel"
"-DBUILD_TESTS=ON"
"-DICESTORM_INSTALL_PREFIX=${icestorm}"
"-DTRELLIS_INSTALL_PREFIX=${trellis}"
"-DTRELLIS_LIBDIR=${trellis}/lib/trellis"
"-DGOWIN_BBA_EXECUTABLE=${python3Packages.apycula}/bin/gowin_bba"
"-DUSE_OPENMP=ON"
# warning: high RAM usage
"-DSERIALIZE_CHIPDBS=OFF"
"-DHIMBAECHEL_UARCH=all"
"-DHIMBAECHEL_GOWIN_DEVICES=all"
"-DHIMBAECHEL_PRJXRAY_DB=${prjxray_src}"
"-DHIMBAECHEL_PRJBEYOND_DB=${prjbeyond_src}"
]
++ (lib.optional enableGui "-DBUILD_GUI=ON")
++ (lib.optional (
enableGui && stdenv.hostPlatform.isDarwin
) "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks");
++ (lib.optional enableGui "-DBUILD_GUI=ON");
postPatch = ''
# use PyPy for icestorm if enabled
substituteInPlace ./ice40/CMakeLists.txt \
--replace ''\'''${PYTHON_EXECUTABLE}' '${icestorm.pythonInterp}'
'';
preBuild = ''
ln -s ../${test_src.name} tests
# Don't use #embed macro for chipdb binary embeddings - otherwise getting spurious type narrowing errors.
# Maybe related to: https://github.com/llvm/llvm-project/issues/119256
substituteInPlace CMakeLists.txt \
--replace-fail "check_cxx_compiler_hash_embed(HAS_HASH_EMBED CXX_FLAGS_HASH_EMBED)" ""
'';
doCheck = true;
@ -116,17 +100,16 @@ stdenv.mkDerivation {
wrapQtApp $out/bin/nextpnr-generic
wrapQtApp $out/bin/nextpnr-ice40
wrapQtApp $out/bin/nextpnr-ecp5
wrapQtApp $out/bin/nextpnr-gowin
wrapQtApp $out/bin/nextpnr-himbaechel
'';
strictDeps = true;
meta = with lib; {
meta = {
description = "Place and route tool for FPGAs";
homepage = "https://github.com/yosyshq/nextpnr";
license = licenses.isc;
platforms = platforms.all;
maintainers = with maintainers; [ thoughtpolice ];
license = lib.licenses.isc;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ thoughtpolice ];
};
}

View file

@ -6,16 +6,16 @@
buildGoModule rec {
pname = "ogen";
version = "1.10.1";
version = "1.11.0";
src = fetchFromGitHub {
owner = "ogen-go";
repo = "ogen";
tag = "v${version}";
hash = "sha256-A4ZtwsDBLGEGxQhGhRSAd+dSt6PRu6sPE4ZF83IWHXM=";
hash = "sha256-fw5nDFBlCX1HPHs9m5uJSkcfi/yUt6BN5W+igLTVepA=";
};
vendorHash = "sha256-VpJR/VC7Gtqg2jEMqDArtRV+3Cf6/J6numUuTrmmnwQ=";
vendorHash = "sha256-6YZudsilVd4KlDGjINT9dradgkiyTPh0uJxDNMq75EY=";
patches = [ ./modify-version-handling.patch ];

View file

@ -39,20 +39,6 @@ assert builtins.elem acceleration [
];
let
pname = "ollama";
# don't forget to invalidate all hashes each update
version = "0.6.5";
src = fetchFromGitHub {
owner = "ollama";
repo = "ollama";
tag = "v${version}";
hash = "sha256-l+JYQjl6A0fKONxtgCtc0ztT18rmArGKcO2o+p4H95M=";
fetchSubmodules = true;
};
vendorHash = "sha256-4wYgtdCHvz+ENNMiHptu6ulPJAznkWetQcdba3IEB6s=";
validateFallback = lib.warnIf (config.rocmSupport && config.cudaSupport) (lib.concatStrings [
"both `nixpkgs.config.rocmSupport` and `nixpkgs.config.cudaSupport` are enabled, "
"but they are mutually exclusive; falling back to cpu"
@ -128,13 +114,20 @@ let
buildGoModule;
inherit (lib) licenses platforms maintainers;
in
goBuild {
inherit
pname
version
src
vendorHash
;
goBuild (finalAttrs: {
pname = "ollama";
# don't forget to invalidate all hashes each update
version = "0.6.5";
src = fetchFromGitHub {
owner = "ollama";
repo = "ollama";
tag = "v${finalAttrs.version}";
hash = "sha256-l+JYQjl6A0fKONxtgCtc0ztT18rmArGKcO2o+p4H95M=";
fetchSubmodules = true;
};
vendorHash = "sha256-4wYgtdCHvz+ENNMiHptu6ulPJAznkWetQcdba3IEB6s=";
env =
lib.optionalAttrs enableRocm {
@ -174,7 +167,7 @@ goBuild {
# replace inaccurate version number with actual release version
postPatch = ''
substituteInPlace version/version.go \
--replace-fail 0.0.0 '${version}'
--replace-fail 0.0.0 '${finalAttrs.version}'
'';
overrideModAttrs = (
@ -230,7 +223,7 @@ goBuild {
ldflags = [
"-s"
"-w"
"-X=github.com/ollama/ollama/version.Version=${version}"
"-X=github.com/ollama/ollama/version.Version=${finalAttrs.version}"
"-X=github.com/ollama/ollama/server.mode=release"
];
@ -241,7 +234,7 @@ goBuild {
{
inherit ollama;
version = testers.testVersion {
inherit version;
inherit (finalAttrs) version;
package = ollama;
};
}
@ -259,7 +252,7 @@ goBuild {
+ lib.optionalString rocmRequested ", using ROCm for AMD GPU acceleration"
+ lib.optionalString cudaRequested ", using CUDA for NVIDIA GPU acceleration";
homepage = "https://github.com/ollama/ollama";
changelog = "https://github.com/ollama/ollama/releases/tag/v${version}";
changelog = "https://github.com/ollama/ollama/releases/tag/v${finalAttrs.version}";
license = licenses.mit;
platforms = if (rocmRequested || cudaRequested) then platforms.linux else platforms.unix;
mainProgram = "ollama";
@ -271,4 +264,4 @@ goBuild {
roydubnium
];
};
}
})

View file

@ -5,32 +5,40 @@
installShellFiles,
pkg-config,
bzip2,
bzip3,
xz,
git,
zlib,
zstd,
}:
rustPlatform.buildRustPackage rec {
pname = "ouch";
version = "0.5.1";
version = "0.6.1";
src = fetchFromGitHub {
owner = "ouch-org";
repo = "ouch";
rev = version;
hash = "sha256-WO1fetu39fcLGcrbzFh+toHpnyxWuDVHtmjuH203hzQ=";
hash = "sha256-vNeOJOyQsjDUzScA1a/W+SI1Z67HTLiHjwWZZpr1Paw=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-LBigtb8kYAgPb4X+L0a/mzPLPEUk5aEHigZuI4Y8N+k=";
cargoHash = "sha256-mMoYJ3dLpb1Y3Ocdyxg1brE7xYeZBbtUg0J/2HTK0hE=";
nativeBuildInputs = [
installShellFiles
pkg-config
rustPlatform.bindgenHook
];
nativeCheckInputs = [
git
];
buildInputs = [
bzip2
bzip3
xz
zlib
zstd
@ -38,11 +46,6 @@ rustPlatform.buildRustPackage rec {
buildFeatures = [ "zstd/pkg-config" ];
preCheck = ''
substituteInPlace tests/ui.rs \
--replace 'format!(r"/private{path}")' 'path.to_string()'
'';
postInstall = ''
installManPage artifacts/*.1
installShellCompletion artifacts/ouch.{bash,fish} --zsh artifacts/_ouch
@ -58,6 +61,7 @@ rustPlatform.buildRustPackage rec {
maintainers = with maintainers; [
figsoda
psibi
krovuxdev
];
mainProgram = "ouch";
};

View file

@ -6,15 +6,15 @@
rustPlatform.buildRustPackage rec {
pname = "oxker";
version = "0.9.0";
version = "0.10.2";
src = fetchCrate {
inherit pname version;
hash = "sha256-XY3LwDagxSi1yeAfqhnbtNRBqJxp0BkhaYZM/T59tGw=";
hash = "sha256-szsC6EniAmcjZaSunvNY0fP3tx0hEbP6oUO0NNbjgTY=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-Z14XLNvu7lcTD5DjaN7+raswnw7A+jyA/ZjFq6b3Vqk=";
cargoHash = "sha256-77oMoKzhe+vrdAwn85A6tj35EOz/ylZh5imdmRjkR3k=";
meta = with lib; {
description = "Simple tui to view & control docker containers";

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
version = "202502";
src = fetchFromGitHub {
owner = "opcm";
owner = "intel";
repo = "pcm";
rev = version;
hash = "sha256-U6V3LX+JlVL9MRFBP3xpYwPQ6Y7pnJ4F/7dpKG3Eyuw=";

View file

@ -13,17 +13,17 @@
# function correctly.
rustPlatform.buildRustPackage rec {
pname = "prisma-engines";
version = "6.5.0";
version = "6.6.0";
src = fetchFromGitHub {
owner = "prisma";
repo = "prisma-engines";
rev = version;
hash = "sha256-m3LBIMIVMI5GlY0+QNw/nTlNWt2rGOZ28z+CfdP51cY=";
hash = "sha256-moonBNNGWECGPvhyyeHKKAQRXj5lNP0k99JB+1POMUE=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-yG+omKAS1eWq3sFgKXMoZWhTP4M34dVRes7OhhTUyTQ=";
cargoHash = "sha256-BiSo3BgVxiPAfSIPUv0SqH+XgU1Vh4wws0set4cLzDU=";
# Use system openssl.
OPENSSL_NO_VENDOR = 1;

View file

@ -13,13 +13,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "prisma";
version = "6.5.0";
version = "6.6.0";
src = fetchFromGitHub {
owner = "prisma";
repo = "prisma";
rev = finalAttrs.version;
hash = "sha256-j/2XUrkxoplvXB8XNOqceZgVxG7F2J7N8wiLY4nHhKo=";
hash = "sha256-AywqYcXzTWaedfHEH2LIaJUv80KFvd7sdADkivLRf5Y=";
};
nativeBuildInputs = [
@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-EED14kiAKEIiEinYHRpWhTuZA6zLVZvtULZvkZviNbE=";
hash = "sha256-Uc4/iePIaHHXBrl66oRwXS9YDbQ5kTpKXa6q9EztbsA=";
};
patchPhase = ''

View file

@ -5,7 +5,7 @@
}:
let
pname = "saucectl";
version = "0.194.2";
version = "0.194.3";
in
buildGoModule {
inherit pname version;
@ -14,7 +14,7 @@ buildGoModule {
owner = "saucelabs";
repo = "saucectl";
tag = "v${version}";
hash = "sha256-DxTqhyDO7kA1uIToU3kePA/0rXLVIq58QK6tFE3dayw=";
hash = "sha256-ECOJ+8gAx/LoCV3l9Nl585E9b8MwptpmweJrwzFx2Vc=";
};
ldflags = [

View file

@ -9,17 +9,17 @@
rustPlatform.buildRustPackage rec {
pname = "shadowsocks-rust";
version = "1.23.0";
version = "1.23.1";
src = fetchFromGitHub {
owner = "shadowsocks";
repo = "shadowsocks-rust";
tag = "v${version}";
hash = "sha256-JcYf6Meq8iG7zcjQu240EKwlAPBriestKlz0RLpIAHg=";
hash = "sha256-lCm/Y0R4/Ti4Eq06/za4D2YanwQ79IkhCBK2TO9/Yfs=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-RadM8sN7ePGNkTanClqgpsDg8fHIrYMHcjbHxDmzKdc=";
cargoHash = "sha256-//cEAeYSpsB429YaWBu+6T4dorV5OZFZuNxLgvqXxR8=";
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];

View file

@ -7,16 +7,16 @@
buildGoModule rec {
pname = "sshocker";
version = "0.3.6";
version = "0.3.8";
src = fetchFromGitHub {
owner = "lima-vm";
repo = "sshocker";
tag = "v${version}";
hash = "sha256-ehsQ/Z1LCSpnvIvABLCIR2aLG4DK33VJ9gidoSEoeqw=";
hash = "sha256-uLotIvFpJL5keVyazG+g2TOKqcZwTDqSoAOaswqliNo=";
};
vendorHash = "sha256-9le1ETAdMZ1s7Hl2STz76/9eU0YkI4yNM/PZVXOwndQ=";
vendorHash = "sha256-uzKLAHxRRw0Bx7HjANOsX0tvfmbJhclT8SP346yFGwc=";
nativeInstallCheckInputs = [ versionCheckHook ];

View file

@ -6,17 +6,17 @@
rustPlatform.buildRustPackage rec {
pname = "twitch-hls-client";
version = "1.3.14";
version = "1.4.0";
src = fetchFromGitHub {
owner = "2bc4";
repo = "twitch-hls-client";
rev = version;
hash = "sha256-g7pnTu6NHvtge7vUyG1Cms6hv4ozPgawMUKYGU7VRak=";
hash = "sha256-bMND6TFM2lpnUFE6BfrNF88JRImYJy/cGhbSjIWi974=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-Suq+j4/lmkEMg6VlLT8UcPcVjDyBLyjUaqPXdqDo3dU=";
cargoHash = "sha256-TvgRj6OyDcL0/I0o14CD8t2+VYu37kFXMwrS093uA1o=";
meta = with lib; {
description = "Minimal CLI client for watching/recording Twitch streams";

View file

@ -15,13 +15,13 @@
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "ubports-pdk";
version = "0-unstable-2024-08-28";
version = "0-unstable-2025-04-06";
src = fetchFromGitHub {
owner = "ubports";
repo = "ubports-pdk";
rev = "ce16915f1ec2aa54bc0f010db7603fbb0deebf4b";
hash = "sha256-jxlia3RgH3DAUO5OK3jB4IH0vUoG2XZKmODq4VhwJFE=";
rev = "9140e410a0c9b8ba775a2eaff89992ff3ee27f9f";
hash = "sha256-u0v7rUsIEvGmVr7gIbcH0pX+WagWyMEu2tqASwL5lEg=";
};
strictDeps = true;

View file

@ -10,17 +10,32 @@
electron,
fetchFromGitHub,
electronArguments ? "",
# Whether to enable tray menu by default
trayEnabled ? true,
# Style of tray: 1 - default style, 2 - mono black, 3 - mono white
trayStyle ? 1,
# Whether to leave application in tray disregarding of its play state
trayAlways ? false,
# Whether to enable developers tools
devTools ? false,
# Vibe animation FPS can be from 0 (black screen) to any reasonable number.
# Recommended 25 - 144. Default 25.
vibeAnimationMaxFps ? 25,
# Yandex Music's custom Windows-styled titlebar. Also makes the window frameless.
customTitleBar ? false,
}:
assert lib.assertMsg (trayStyle >= 1 && trayStyle <= 3) "Tray style must be withing 1 and 3";
assert lib.assertMsg (vibeAnimationMaxFps >= 0) "Vibe animation max FPS must be greater then 0";
stdenvNoCC.mkDerivation rec {
pname = "yandex-music";
version = "5.39.0";
version = "5.46.0";
src = fetchFromGitHub {
owner = "cucumber-sp";
repo = "yandex-music-linux";
rev = "v${version}";
hash = "sha256-oEbbQRqvnK521N3Kerv18h1frVLbioFeHfb/FCkHC6Y=";
hash = "sha256-JyDpJCNHmPV1l9+//3sgJGkD+pewuoAb33hgTUi5Ukc=";
};
nativeBuildInputs = [
@ -48,6 +63,27 @@ stdenvNoCC.mkDerivation rec {
runHook postBuild
'';
config =
let
inherit (lib) optionalString;
in
''
ELECTRON_ARGS="${electronArguments}"
VIBE_ANIMATION_MAX_FPS=${toString vibeAnimationMaxFps}
''
+ optionalString trayEnabled ''
TRAY_ENABLED=${toString trayStyle}
''
+ optionalString trayAlways ''
ALWAYS_LEAVE_TO_TRAY=1
''
+ optionalString devTools ''
DEV_TOOLS=1
''
+ optionalString customTitleBar ''
CUSTOM_TITLE_BAR=1
'';
installPhase = ''
runHook preInstall
@ -55,9 +91,7 @@ stdenvNoCC.mkDerivation rec {
mv app/yandex-music.asar "$out/share/nodejs"
CONFIG_FILE="$out/share/yandex-music.conf"
echo "TRAY_ENABLED=${if trayEnabled then "1" else "0"}" >> "$CONFIG_FILE"
echo "ELECTRON_ARGS=\"${electronArguments}\"" >> "$CONFIG_FILE"
echo "$config" >> "$CONFIG_FILE"
install -Dm755 "$src/templates/yandex-music.sh" "$out/bin/yandex-music"
substituteInPlace "$out/bin/yandex-music" \

View file

@ -1,6 +1,6 @@
{
"version": "5.39.0",
"exe_name": "Yandex_Music_x64_5.39.0.exe",
"exe_link": "https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.39.0.exe",
"exe_hash": "sha256-jOaxKDOkabsNQTXH5+UGwfdL+Srjm5gjQgHe/YuGiaQ="
"version": "5.46.0",
"exe_name": "Yandex_Music_x64_5.46.0.exe",
"exe_link": "https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.46.0.exe",
"exe_hash": "sha256-gvdJ/ucPeSG/oSD6ullFzWdRYzu0ovxo0qK8ZjLHi+g="
}

View file

@ -9,9 +9,9 @@
}:
let
version_4 = "4.8.1";
version_4 = "4.9.1";
version_3 = "3.8.7";
hash_4 = "sha256-JRQVUO5KsaGMmoC99cloW+hbFjgaFLNT3tqA29TVu34=";
hash_4 = "sha256-znxB827TFLAEfCeHrwBsmRlkZz1LVWsBFhjZANiIW/4=";
hash_3 = "sha256-vRrk+Fs/7dZha3h7yI5NpMfd1xezesnigpFgTRCACZo=";
in

View file

@ -8,14 +8,14 @@
}:
python3Packages.buildPythonApplication rec {
pname = "ytdl-sub";
version = "2025.04.03";
version = "2025.04.18";
pyproject = true;
src = fetchFromGitHub {
owner = "jmbannon";
repo = "ytdl-sub";
tag = version;
hash = "sha256-4Bgh1FvtJl27K9AnSwl/q/B4T8fbmmxSKk7srMVypmQ=";
hash = "sha256-TaZS9kaBcl6F1CvP8q4pGcZE1b1dAf1qnXHjfM/AFWg=";
};
postPatch = ''

View file

@ -131,6 +131,9 @@ stdenv.mkDerivation (finalAttrs: {
gst-plugins-base
gst-plugins-good
gst-plugins-bad
# Something seems borked with bad's h264 decoder, add libav as a workaround
# https://github.com/NixOS/nixpkgs/issues/399599#issuecomment-2816268226
gst-libav
# maybe add ugly to cover all kinds of formats?
]);

View file

@ -11,13 +11,13 @@
let
self = {
pname = "cbqn";
version = "0.8.0";
version = "0.9.0";
src = fetchFromGitHub {
owner = "dzaima";
repo = "CBQN";
rev = "v${self.version}";
hash = "sha256-vmd7CX0jgozysmjKK0p5GM4Qd3vY71q1kcKwfr+6fkw=";
hash = "sha256-WGQvnNVnNkz0PR/E5L05KvaaRZ9hgt9gNdzsR9OFYxA=";
};
};
in
@ -25,13 +25,13 @@
cbqn-bytecode = {
pname = "cbqn-bytecode";
version = "0-unstable-2024-09-15";
version = "0-unstable-2025-03-16";
src = fetchFromGitHub {
owner = "dzaima";
repo = "cbqnBytecode";
rev = "c7d83937710889591bad3525077afc30a21e5148";
hash = "sha256-bEHyiJusddBuTk7MZX1NGvkj66WeOJv5qxBQV6Uhs1E=";
rev = "0bdfb86d438a970b983afbca93011ebd92152b88";
hash = "sha256-oUM4UwLy9tusTFLlaZbbHfFqKEcqd9Mh4tTqiyvMyvo=";
};
};
@ -49,13 +49,13 @@
singeli = {
pname = "singeli";
version = "0-unstable-2024-09-29";
version = "0-unstable-2025-03-13";
src = fetchFromGitHub {
owner = "mlochbaum";
repo = "Singeli";
rev = "b43f3999b0c5a40b43ceee258fbe6bb8245d06af";
hash = "sha256-tf5mYIV368Y2cgYJ0U4OZQxuN6kldHUKi9oSjAHbA4Y=";
rev = "53f42ce4331176d281fa577408ec5a652bdd9127";
hash = "sha256-NbCNd/m0SdX2/aabeOhAzEYc5CcT/r75NR5ScuYj77c=";
};
};
}

View file

@ -8,13 +8,13 @@
stdenv.mkDerivation rec {
pname = "nghttp3";
version = "1.8.0";
version = "1.9.0";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = pname;
rev = "v${version}";
hash = "sha256-SWc7qTQjk03I24nYjzUnOj58ZuV3cbX0G5y4zXwiU4w=";
hash = "sha256-CTra8vmpIig8LX7RWqRzhWhX9yn0RnFrnV/kYPgZgJk=";
fetchSubmodules = true;
};

View file

@ -14,13 +14,13 @@
stdenv.mkDerivation rec {
pname = "ngtcp2";
version = "1.11.0";
version = "1.12.0";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = pname;
rev = "v${version}";
hash = "sha256-ize2i2kx9spAWOq3joTZGiAd01cwmBmFXF6jBtyjPWc=";
hash = "sha256-mfgWtyYhAJB8kvQVNCuSHx4Nz1Th5STMlorCB2xO7OQ=";
fetchSubmodules = true;
};

View file

@ -27,7 +27,7 @@
buildPythonPackage rec {
pname = "atproto";
version = "0.0.59";
version = "0.0.61";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -36,7 +36,7 @@ buildPythonPackage rec {
owner = "MarshalX";
repo = "atproto";
tag = "v${version}";
hash = "sha256-Q+ZJMbchz3u7kXAR9fJpzJd6Zdc44LkntPmEE7IeW6A=";
hash = "sha256-90u/ew5j6kRU8Mow/dXTUXpv2FbEFpKRPGoaWQ7gvSA=";
};
POETRY_DYNAMIC_VERSIONING_BYPASS = version;

View file

@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
colcon,
setuptools,
argcomplete,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "colcon-argcomplete";
version = "0.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "colcon";
repo = "colcon-argcomplete";
tag = version;
hash = "sha256-A6ia9OVZa+DwChVwCmkjvDtUloiFQyqtmhlaApbD7iI=";
};
build-system = [ setuptools ];
dependencies = [
colcon
argcomplete
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
disabledTestPaths = [
"test/test_flake8.py"
"test/test_spell_check.py"
];
pythonImportsCheck = [
"colcon_argcomplete"
];
meta = {
description = "An extension for colcon-core to provide command line completion using argcomplete";
homepage = "https://github.com/colcon/colcon-argcomplete";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ guelakais ];
};
}

View file

@ -1,17 +1,22 @@
{
lib,
agate,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
agate,
dbt-adapters,
dbt-common,
dbt-core,
fetchFromGitHub,
google-cloud-bigquery,
google-cloud-dataproc,
google-cloud-storage,
# tests
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
@ -19,8 +24,6 @@ buildPythonPackage rec {
version = "1.9.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dbt-labs";
repo = "dbt-bigquery";
@ -28,7 +31,10 @@ buildPythonPackage rec {
hash = "sha256-YZA8lcUGoq5jMNS1GlbBd036X2F3khsZWr5Pv65zpPI=";
};
pythonRelaxDeps = [ "agate" ];
pythonRelaxDeps = [
"agate"
"google-cloud-storage"
];
build-system = [
setuptools
@ -36,12 +42,12 @@ buildPythonPackage rec {
dependencies = [
agate
dbt-common
dbt-adapters
dbt-common
dbt-core
google-cloud-bigquery
google-cloud-storage
google-cloud-dataproc
google-cloud-storage
];
nativeCheckInputs = [ pytestCheckHook ];
@ -50,11 +56,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "dbt.adapters.bigquery" ];
meta = with lib; {
meta = {
description = "Plugin enabling dbt to operate on a BigQuery database";
homepage = "https://github.com/dbt-labs/dbt-bigquery";
changelog = "https://github.com/dbt-labs/dbt-bigquery/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ tjni ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ tjni ];
};
}

View file

@ -1,8 +1,7 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
fetchPypi,
# build-system
hatchling,
@ -29,19 +28,14 @@
buildPythonPackage rec {
pname = "dbt-common";
version = "1.14.0";
version = "1.22.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "dbt-labs";
repo = "dbt-common";
# Unfortunately, upstream doesn't tag commits on GitHub, and the pypi source
# doesn't include tests. TODO: Write an update script that will detect the
# version from `dbt_common/__about__.py`.
rev = "965ad815f0dd546678d2595a3010d81f344f8b73";
hash = "sha256-63gWkETi52uOrO0FTPwM831UHECqcyCtb7wVHQuujnc=";
# No tags on GitHub
src = fetchPypi {
pname = "dbt_common";
inherit version;
hash = "sha256-6cdTMVCCB6SNEUsQtzKUBnKuJgwfttl7o2+zBp8Fu5g=";
};
build-system = [ hatchling ];
@ -82,6 +76,9 @@ buildPythonPackage rec {
"test_extra_dict_on_event"
];
# No tests in the pypi archive
doCheck = false;
pythonImportsCheck = [ "dbt_common" ];
meta = {

View file

@ -1,14 +1,19 @@
{
lib,
agate,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
agate,
click,
daff,
dbt-adapters,
dbt-common,
dbt-extractor,
dbt-semantic-interfaces,
fetchFromGitHub,
jinja2,
logbook,
mashumaro,
@ -16,35 +21,41 @@
packaging,
pathspec,
protobuf,
callPackage,
pythonOlder,
pydantic,
pydantic-settings,
pytz,
pyyaml,
requests,
setuptools,
snowplow-tracker,
sqlparse,
typing-extensions,
# passthru
callPackage,
}:
buildPythonPackage rec {
pname = "dbt-core";
version = "1.9.3";
version = "1.10.0b2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "dbt-labs";
repo = "dbt-core";
tag = "v${version}";
hash = "sha256-kJyeXKETYYZIHyx1LeOVcC1ELQ9NkHFhkd8gb6cuzZc=";
hash = "sha256-MTrdpbPqdakFDmLKRFJ23u9hLgGhZ5T+r4om9HPBjkw=";
};
postPatch = ''
substituteInPlace dbt/utils/artifact_upload.py \
--replace-fail \
"from pydantic import BaseSettings" \
"from pydantic_settings import BaseSettings"
'';
sourceRoot = "${src.name}/core";
pythonRelaxDeps = [
"protobuf"
"agate"
"click"
"dbt-common"
@ -54,6 +65,7 @@ buildPythonPackage rec {
"networkx"
"pathspec"
"protobuf"
"pydantic"
"urllib3"
];
@ -76,6 +88,8 @@ buildPythonPackage rec {
packaging
pathspec
protobuf
pydantic
pydantic-settings
pytz
pyyaml
requests
@ -91,7 +105,7 @@ buildPythonPackage rec {
withAdapters = callPackage ./with-adapters.nix { };
};
meta = with lib; {
meta = {
description = "Enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications";
longDescription = ''
The dbt tool needs adapters to data sources in order to work. The available
@ -111,8 +125,8 @@ buildPythonPackage rec {
'';
homepage = "https://github.com/dbt-labs/dbt-core";
changelog = "https://github.com/dbt-labs/dbt-core/blob/${src.tag}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
mausch
tjni
];

View file

@ -27,14 +27,14 @@
buildPythonPackage rec {
pname = "django-extensions";
version = "4.0";
version = "4.1";
pyproject = true;
src = fetchFromGitHub {
owner = pname;
repo = pname;
tag = version;
hash = "sha256-VosMPkwzqmEieB85k7qX5yfefHNn+RwAsoR1ezYJHC4=";
hash = "sha256-WgO/bDe4anQCc1q2Gdq3W70yDqDgmsvn39Qf9ZNVXuE=";
};
build-system = [ setuptools ];

View file

@ -0,0 +1,104 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# optional dependencies
asgiref,
blinker,
django,
fastapi,
flask,
sanic,
# tests
django-redis,
pytest-django,
httpx,
fakeredis,
jsonschema,
pytestCheckHook,
pytest-cov-stub,
pytest-mock,
redis,
redisTestHook,
}:
buildPythonPackage rec {
pname = "dockerflow";
version = "2024.04.2";
pyproject = true;
src = fetchFromGitHub {
owner = "mozilla-services";
repo = "python-dockerflow";
tag = version;
hash = "sha256-5Ov605FyhX+n6vFks2sdtviGqkrgDIMXpcvgqR85jmQ=";
};
build-system = [
setuptools
setuptools-scm
];
optional-dependencies = {
django = [ django ];
flask = [
blinker
flask
];
sanic = [ sanic ];
fastapi = [
asgiref
fastapi
];
};
nativeCheckInputs = [
fakeredis
jsonschema
pytestCheckHook
pytest-cov-stub
pytest-mock
redis
redisTestHook
# django
django-redis
pytest-django
# fastapi
httpx
] ++ lib.flatten (lib.attrValues optional-dependencies);
disabledTests = [
# AssertionError: assert 'c7a05e2b-8a21-4255-a3ed-92cea1e74a62' is None
"test_mozlog_without_correlation_id_middleware"
];
disabledTestPaths = [
# missing flask-redis dependency
"tests/flask/test_flask.py"
# missing sanic-redis dependency
"tests/sanic/test_sanic.py"
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.django.settings
'';
pythonImportsCheck = [
"dockerflow"
];
meta = {
changelog = "https://github.com/mozilla-services/python-dockerflow/releases/tag/${src.tag}";
description = "A Python package to implement tools and helpers for Mozilla Dockerflow";
homepage = "https://github.com/mozilla-services/python-dockerflow";
license = lib.licenses.mpl20;
};
}

View file

@ -1,31 +1,38 @@
{
lib,
buildPythonPackage,
db-dtypes,
fetchPypi,
freezegun,
# build-system
setuptools,
# dependencies
google-api-core,
google-cloud-bigquery-storage,
google-cloud-core,
google-resumable-media,
grpcio,
proto-plus,
protobuf,
python-dateutil,
requests,
# optional-dependencies
pyarrow,
db-dtypes,
pandas,
tqdm,
ipython,
# tests
freezegun,
google-cloud-datacatalog,
google-cloud-storage,
google-cloud-testutils,
google-resumable-media,
grpcio,
ipython,
mock,
pandas,
proto-plus,
protobuf,
psutil,
pyarrow,
pytest-xdist,
pytestCheckHook,
python-dateutil,
pythonOlder,
requests,
setuptools,
tqdm,
}:
buildPythonPackage rec {
@ -33,8 +40,6 @@ buildPythonPackage rec {
version = "3.31.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "google_cloud_bigquery";
inherit version;
@ -44,15 +49,15 @@ buildPythonPackage rec {
build-system = [ setuptools ];
dependencies = [
grpcio
google-api-core
google-cloud-core
google-cloud-bigquery-storage
google-cloud-core
google-resumable-media
grpcio
proto-plus
protobuf
requests
python-dateutil
requests
] ++ google-api-core.optional-dependencies.grpc;
optional-dependencies = {
@ -73,13 +78,13 @@ buildPythonPackage rec {
nativeCheckInputs =
[
freezegun
google-cloud-datacatalog
google-cloud-storage
google-cloud-testutils
mock
psutil
google-cloud-datacatalog
google-cloud-storage
pytestCheckHook
pytest-xdist
pytestCheckHook
]
++ optional-dependencies.pandas
++ optional-dependencies.ipython;
@ -91,39 +96,45 @@ buildPythonPackage rec {
disabledTests = [
# requires credentials
"test_bigquery_magic"
"TestBigQuery"
"test_context_with_no_query_cache_from_context"
"test_arrow_extension_types_same_for_storage_and_REST_APIs_894"
"test_bigquery_magic"
"test_context_with_no_query_cache_from_context"
"test_dry_run"
"test_list_rows_empty_table"
"test_list_rows_page_size"
"test_list_rows_range_csv"
"test_list_rows_range"
"test_list_rows_scalars_extreme"
"test_list_rows_range_csv"
"test_list_rows_scalars"
"test_dry_run"
"test_list_rows_scalars_extreme"
"test_session"
"test_to_arrow_query_with_empty_result"
# Mocking of _ensure_bqstorage_client fails
"test_to_arrow_ensure_bqstorage_client_wo_bqstorage"
# requires network
"test__initiate_resumable_upload"
"test__initiate_resumable_upload_mtls"
"test__initiate_resumable_upload_with_retry"
"test_context_with_custom_connection"
"test_context_with_default_connection"
"test_dbapi_create_view"
"test_list_rows_nullable_scalars_dtypes"
"test_parameterized_types_round_trip"
"test_structs"
"test_table_snapshots"
"test__initiate_resumable_upload"
"test__initiate_resumable_upload_mtls"
"test__initiate_resumable_upload_with_retry"
"test_table_clones"
"test_context_with_default_connection"
"test_context_with_custom_connection"
"test_table_snapshots"
];
disabledTestPaths = [
# Tests require credentials
"tests/system/test_query.py"
"tests/system/test_job_retry.py"
"tests/system/test_pandas.py"
"tests/system/test_query.py"
# ModuleNotFoundError: No module named 'google.cloud.resourcemanager_v3'
"tests/system/test_client.py"
];
pythonImportsCheck = [
@ -131,11 +142,11 @@ buildPythonPackage rec {
"google.cloud.bigquery_v2"
];
meta = with lib; {
meta = {
description = "Google BigQuery API client library";
homepage = "https://github.com/googleapis/python-bigquery";
changelog = "https://github.com/googleapis/python-bigquery/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
license = lib.licenses.asl20;
maintainers = [ ];
};
}

View file

@ -1,8 +1,7 @@
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
fetchFromGitHub,
# build-system
hatch-vcs,
@ -27,11 +26,11 @@ buildPythonPackage rec {
version = "1.20.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-jHi3mGAc468xUjZnxtHLQN+NeBJJ6+u9ssX2FDVl5tg=";
src = fetchFromGitHub {
owner = "holoviz";
repo = "holoviews";
tag = "v${version}";
hash = "sha256-QCRVOBMKckPji5rH7iCSnmxbNwtGypMqdfBXilXmngE=";
};
postPatch = ''
@ -70,12 +69,16 @@ buildPythonPackage rec {
"test_server_dynamicmap_with_dims"
"test_server_dynamicmap_with_stream"
"test_server_dynamicmap_with_stream_dims"
# ModuleNotFoundError: No module named 'param'
"test_no_blocklist_imports"
];
pythonImportsCheck = [ "holoviews" ];
meta = {
description = "Python data analysis and visualization seamless and simple";
changelog = "https://github.com/holoviz/holoviews/releases/tag/v${version}";
mainProgram = "holoviews";
homepage = "https://www.holoviews.org/";
license = lib.licenses.bsd3;

View file

@ -26,14 +26,14 @@
buildPythonPackage rec {
pname = "langgraph-checkpoint-postgres";
version = "2.0.19";
version = "2.0.21";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "checkpointpostgres==${version}";
hash = "sha256-8JNPKaaKDM7VROd1n9TDALN6yxKRz1CuAultBcqBMG0=";
hash = "sha256-hl1EBOtUkSfHGxsM+LOZPLSvkW7hdHS08klpvA7/Bd0=";
};
postgresqlTestSetupPost = ''

View file

@ -110,6 +110,10 @@ buildPythonPackage rec {
"test_no_modifier"
"test_pending_writes_resume"
"test_remove_message_via_state_update"
# pydantic.errors.PydanticForbiddenQualifier,
# see https://github.com/langchain-ai/langgraph/issues/4360
"test_state_schema_optional_values"
];
disabledTestPaths = [

View file

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "mdformat-admon";
version = "2.0.6";
version = "2.1.1";
pyproject = true;
disabled = pythonOlder "3.8";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "KyleKing";
repo = "mdformat-admon";
tag = "v${version}";
hash = "sha256-YyEiqry1dAm/2EEuQjPFEfdpLI+NiLhVcyx4jAyXs4E=";
hash = "sha256-y0TNyje2OXBY4oo9kBePlqSZAU36vbQQKZUPm/u6DAc=";
};
nativeBuildInputs = [ flit-core ];

View file

@ -37,5 +37,6 @@ buildPythonPackage rec {
changelog = "https://github.com/KyleKing/mdformat-gfm-alerts/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
broken = true; # broken test due to changes in mdformat; compare https://github.com/KyleKing/mdformat-admon/issues/25
};
}

View file

@ -4,7 +4,6 @@
fetchFromGitHub,
flit-core,
mdformat,
mdformat-admon,
mdformat-gfm,
mdit-py-plugins,
more-itertools,
@ -31,7 +30,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [
mdformat
mdformat-admon
mdformat-gfm
mdit-py-plugins
more-itertools

View file

@ -38,5 +38,6 @@ buildPythonPackage rec {
aldoborrero
polarmutex
];
broken = true; # broken test due to changes in mdformat; compare https://github.com/KyleKing/mdformat-admon/issues/25
};
}

View file

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "mdformat";
version = "0.7.19";
version = "0.7.22";
pyproject = true;
disabled = pythonOlder "3.8";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "executablebooks";
repo = "mdformat";
tag = version;
hash = "sha256-t2yx8cIq8es3XOc2nbHPKjUUium5+RPZuD8oNWZxVV0=";
hash = "sha256-WvbGCqfzh7KlNXIGJq09goiyLzVgU7c1+qmsLrIW38k=";
};
build-system = [ setuptools ];

View file

@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# tests
django,
djangorestframework,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "nested-multipart-parser";
version = "1.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "remigermain";
repo = "nested-multipart-parser";
tag = version;
hash = "sha256-9IGfYb6mVGkoE/6iDg0ap8c+0vrBDKK1DxzLRyfeWOk=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
django
djangorestframework
pytestCheckHook
];
pythonImportsCheck = [
"nested_multipart_parser"
];
meta = {
changelog = "https://github.com/remigermain/nested-multipart-parser/releases/tag/${src.tag}";
description = "Parser for nested data for 'multipart/form'";
homepage = "https://github.com/remigermain/nested-multipart-parser";
license = lib.licenses.mit;
};
}

View file

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "nodriver";
version = "0.44";
version = "0.45.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-M2Pxea6srAf1zCTmKG31JVHy38BbGmS2JS5NLF1Y1Uc=";
hash = "sha256-cTg//IxrjVNySKx7ElzDAEZ33xflZG+r75Dzkh76Ifg=";
};
disabled = pythonOlder "3.9";

View file

@ -47,14 +47,10 @@ buildPythonPackage rec {
#
# - https://git-scm.com/docs/gitattributes#_export_subst and
# - https://github.com/numba/numba/blame/5ef7c86f76a6e8cc90e9486487294e0c34024797/numba/_version.py#L25-L31
#
# Hence this hash may change if GitHub / Git will change it's behavior.
# Hopefully this will not happen until the next release. We are fairly sure
# that upstream relies on those strings to be valid, that's why we don't
# use `forceFetchGit = true;`.` If in the future we'll observe the hash
# changes too often, we can always use forceFetchGit, and inject the
# relevant strings ourselves, using `substituteInPlace`, in postFetch.
hash = "sha256-4CaTJPaQduJqD0NQOPp1qsDr/BeCjbfZhulVW/x2ZAU=";
postFetch = ''
sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${src.tag})"/' $out/numba/_version.py
'';
hash = "sha256-d09armWFI55fqyYCzZNVOq6f5b8BTk0s8fjU0OGrNgo=";
};
postPatch = ''

View file

@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "ollama";
version = "0.4.7";
version = "0.4.8";
pyproject = true;
disabled = pythonOlder "3.8";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "ollama";
repo = "ollama-python";
tag = "v${version}";
hash = "sha256-+iinQIVbL0f4kNc9aaS0H4Ua2K5w5uapFAIkpyoMj+E=";
hash = "sha256-ZhSbd7Um3+jG3yL3FwCm0lUdi5EQXVjJk0UMLRKeLOQ=";
};
postPatch = ''

View file

@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "pandantic";
version = "1.0.0";
version = "1.0.1";
pyproject = true;
disabled = pythonOlder "3.10";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "wesselhuising";
repo = "pandantic";
tag = version;
hash = "sha256-c108zoKBnjlELCDia8XSsdG8Exa/k7HKyRvcTocndss=";
hash = "sha256-lqd4aQiBMbATFMdftKQeTlqQ3MGrxm2shb7qil+84iA=";
};
build-system = [ poetry-core ];
@ -41,7 +41,7 @@ buildPythonPackage rec {
meta = {
description = "Module to enriche the Pydantic BaseModel class";
homepage = "https://github.com/wesselhuising/pandantic";
changelog = "https://github.com/wesselhuising/pandantic/releases/tag/${version}";
changelog = "https://github.com/wesselhuising/pandantic/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};

View file

@ -14,14 +14,14 @@
buildPythonPackage rec {
pname = "prometheus-api-client";
version = "0.5.7";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "4n4nd";
repo = "prometheus-api-client-python";
tag = "v${version}";
hash = "sha256-XmsBEGerEA7kEigkVpDYpe1UfEKvEzV/0uY3sffRC7s=";
hash = "sha256-Xi3n1Ha6bpfp4KfCh/Zky7bBrXOojuR6BVzPNQ3a18Y=";
};
build-system = [ setuptools ];

View file

@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "py-sonic";
version = "1.0.2";
version = "1.0.3";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-GNjF7sW/5Mtbh0atpEVFt+M8XddNfedDVmxxOpDdIW4=";
hash = "sha256-Kcly3pTBL9ZMDcCfKgI1pO8Iyr15/tv8PVoi5WUUUKE=";
};
# package has no tests

View file

@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "pyexcel";
version = "0.7.2";
version = "0.7.3";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
hash = "sha256-oNbreI6wboGhtDjA58AP7ggEZfM5f7z/5c7DSuvmoyo=";
hash = "sha256-V7PD+1XdCaYsu/Kunx54qhG2J8K/xgcv8tlYfAIrBtQ=";
};
propagatedBuildInputs = [

View file

@ -161,5 +161,12 @@ buildPythonPackage rec {
license = lib.licenses.lgpl21Plus;
maintainers = [ lib.maintainers.pbsds ];
platforms = lib.platforms.unix;
badPlatforms = [
# loading pygame.tests.font_test
# /nix/store/mrvg4qq09d51w5s95v15y4ym05q009fd-stdenv-darwin/setup: line 1771: 64131 Segmentation fault: 11
#
# https://github.com/NixOS/nixpkgs/issues/400378
lib.systems.inspect.patterns.isDarwin
];
};
}

View file

@ -2,22 +2,37 @@
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
cython,
setuptools,
pytestCheckHook,
writeText,
# dependencies
autograd,
cma,
cython,
deprecated,
dill,
matplotlib,
numpy,
scipy,
# tests
pytestCheckHook,
nbformat,
notebook,
numba,
numpy,
scipy,
pythonAtLeast,
writeText,
}:
let
pymoo_data = fetchFromGitHub {
owner = "anyoptimization";
repo = "pymoo-data";
rev = "33f61a78182ceb211b95381dd6d3edee0d2fc0f3";
hash = "sha256-iGWPepZw3kJzw5HKV09CvemVvkvFQ38GVP+BAryBSs0=";
};
in
buildPythonPackage rec {
pname = "pymoo";
version = "0.6.1.3";
@ -30,27 +45,32 @@ buildPythonPackage rec {
hash = "sha256-CbeJwv51lu4cABgGieqy/8DCDJCb8wOPPVqUHk8Jb7E=";
};
pymoo_data = fetchFromGitHub {
owner = "anyoptimization";
repo = "pymoo-data";
rev = "33f61a78182ceb211b95381dd6d3edee0d2fc0f3";
hash = "sha256-iGWPepZw3kJzw5HKV09CvemVvkvFQ38GVP+BAryBSs0=";
};
pythonRelaxDeps = [ "cma" ];
pythonRemoveDeps = [ "alive-progress" ];
postPatch = ''
substituteInPlace pymoo/util/display/display.py \
--replace-fail "from pymoo.util.display.progress import ProgressBar" "" \
--replace-fail "ProgressBar() if progress else None" \
"print('Missing alive_progress needed for progress=True!') if progress else None"
--replace-fail \
"ProgressBar() if progress else None" \
"print('Missing alive_progress needed for progress=True!') if progress else None"
substituteInPlace pymoo/algorithms/soo/nonconvex/es.py \
--replace-fail "np.math.ceil" "np.ceil"
substituteInPlace pymoo/util/mnn.py \
--replace-fail "np.product" "np.prod"
substituteInPlace pymoo/config.py \
--replace-fail \
"https://raw.githubusercontent.com/anyoptimization/pymoo-data/main/" \
"file://${pymoo_data}/"
'';
pythonRelaxDeps = [ "cma" ];
pythonRemoveDeps = [ "alive-progress" ];
build-system = [
setuptools
cython
];
dependencies = [
autograd
cma
@ -62,10 +82,6 @@ buildPythonPackage rec {
];
preCheck = ''
substituteInPlace pymoo/config.py \
--replace-fail "https://raw.githubusercontent.com/anyoptimization/pymoo-data/main/" \
"file://$pymoo_data/"
# Some tests require a grad backend to be configured, this is a hacky way to do so.
# The choice must be either "jax.numpy" or "autograd.numpy"
echo 'from pymoo.gradient import activate; activate("autograd.numpy")' >> tests/conftest.py
@ -78,15 +94,24 @@ buildPythonPackage rec {
];
# Select some lightweight tests
pytestFlagsArray = [ "-m 'not long'" ];
disabledTests = [
# ModuleNotFoundError: No module named 'pymoo.cython.non_dominated_sorting'
"test_fast_non_dominated_sorting"
"test_efficient_non_dominated_sort"
"test_dominance_degree_non_dominated_sort"
disabledTests =
[
# ModuleNotFoundError: No module named 'pymoo.cython.non_dominated_sorting'
"test_fast_non_dominated_sorting"
"test_efficient_non_dominated_sort"
"test_dominance_degree_non_dominated_sort"
# sensitive to float precision
"test_cd_and_pcd"
];
# sensitive to float precision
"test_cd_and_pcd"
# TypeError: 'NoneType' object is not subscriptable
"test_dascomp"
"test_mw"
]
++ lib.optionals (pythonAtLeast "3.13") [
# AttributeError: 'ZDT3' object has no attribute 'elementwise'
"test_kktpm_correctness"
];
disabledTestPaths = [
# sensitive to float precision
"tests/algorithms/test_no_modfication.py"
@ -98,10 +123,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "pymoo" ];
meta = with lib; {
meta = {
description = "Multi-objective Optimization in Python";
homepage = "https://pymoo.org/";
license = licenses.asl20;
maintainers = with maintainers; [ veprbl ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ veprbl ];
};
}

View file

@ -39,6 +39,9 @@ buildPythonPackage rec {
owner = "pymc-devs";
repo = "pytensor";
tag = "rel-${version}";
postFetch = ''
sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${src.tag})"/' $out/pytensor/_version.py
'';
hash = "sha256-Iyiuvt86pfz8MmpwgDecKJFVOw+fKpEaA9m1MBA9Yxs=";
};

View file

@ -12,13 +12,13 @@
buildPythonPackage rec {
pname = "pytest-mypy";
version = "1.0.0";
version = "1.0.1";
pyproject = true;
src = fetchPypi {
pname = "pytest_mypy";
inherit version;
hash = "sha256-4oSi6NJ7wWowacNKtgGy9I/OupvUNdZfabfY9Bw3PW4=";
hash = "sha256-P1/K/3XIDczGtoz17MKOG75x6VMJRp63oov0CM5VwHQ=";
};
nativeBuildInputs = [

View file

@ -2,33 +2,54 @@
lib,
buildPythonPackage,
fetchFromGitHub,
oldest-supported-numpy,
# build-system
hatchling,
numpy,
setuptools,
# dependencies
scipy,
numba,
# tests
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "quaternion";
version = "2024.0.3";
format = "pyproject";
version = "2024.0.8";
pyproject = true;
src = fetchFromGitHub {
owner = "moble";
repo = pname;
repo = "quaternion";
tag = "v${version}";
hash = "sha256-3UVqeiGcdsjQQpVRhcDBf1N0XJw+Xe/Pp+4lmGzl8ws=";
hash = "sha256-Le9i7oFPcBuZw/oNwCxz3svzKg9zREk4peIJadTiJ/M=";
};
propagatedBuildInputs = [
oldest-supported-numpy
numba
build-system = [
hatchling
numpy
setuptools
];
dependencies = [
numpy
scipy
];
meta = with lib; {
pythonImportsCheck = [ "quaternion" ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
meta = {
description = "Package add built-in support for quaternions to numpy";
homepage = "https://github.com/moble/quaternion";
license = licenses.mit;
maintainers = [ maintainers.ocfox ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ocfox ];
};
}

View file

@ -15,13 +15,13 @@
buildPythonPackage rec {
pname = "stravaweblib";
version = "0.0.8";
version = "0.0.9";
src = fetchFromGitHub {
owner = "pR0Ps";
repo = "stravaweblib";
tag = "v${version}";
hash = "sha256-v54UeRjhoH0GN2AVFKRjqKJ6BYUXVATe2qoDk9P48oU=";
hash = "sha256-bKiQ06vQfngELuREje9KQd5JNl6gaoU5jvGOyj3Wyb0=";
};
build-system = [

View file

@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "textualeffects";
version = "0.1.3";
version = "0.1.4";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
inherit pname version;
hash = "sha256-s6LrsCJu/ubDIXQqxQlY2HVbzDc9+FtUE9oBSulUsm8=";
hash = "sha256-hnCTIdSc16v0ftUTeCEwF05vXYXqFplqfDhwnDZGxGM=";
};
build-system = [ hatchling ];

View file

@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "types-markdown";
version = "3.7.0.20250322";
version = "3.8.0.20250415";
pyproject = true;
src = fetchPypi {
pname = "types_markdown";
inherit version;
hash = "sha256-pI7YLfy2lUWSoQ8QRonS1E35ElzlGzzuIOAZilIW1Vw=";
hash = "sha256-mKsTWH0Rd3adk+VVhtPclwR991vG43zkB0Zm9d1CEro=";
};
build-system = [ setuptools ];

View file

@ -2,32 +2,42 @@
lib,
stdenv,
buildPythonPackage,
python,
libxnd,
setuptools,
ndtypes,
libndtypes,
libxnd,
isPy27,
pythonAtLeast,
python,
}:
buildPythonPackage {
pname = "xnd";
format = "setuptools";
disabled = isPy27;
inherit (libxnd) version src meta;
pyproject = true;
propagatedBuildInputs = [ ndtypes ];
build-system = [ setuptools ];
dependencies = [ ndtypes ];
buildInputs = [ libndtypes ];
postPatch = ''
substituteInPlace setup.py \
--replace 'include_dirs = ["libxnd", "ndtypes/python/ndtypes"] + INCLUDES' \
'include_dirs = ["${libndtypes}/include", "${ndtypes}/include", "${libxnd}/include"]' \
--replace 'library_dirs = ["libxnd", "ndtypes/libndtypes"] + LIBS' \
'library_dirs = ["${libndtypes}/lib", "${libxnd}/lib"]' \
--replace 'runtime_library_dirs = ["$ORIGIN"]' \
'runtime_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib"]' \
'';
postPatch =
''
substituteInPlace setup.py \
--replace-fail \
'include_dirs = ["libxnd", "ndtypes/python/ndtypes"] + INCLUDES' \
'include_dirs = ["${libndtypes}/include", "${ndtypes}/include", "${libxnd}/include"]' \
--replace-fail \
'library_dirs = ["libxnd", "ndtypes/libndtypes"] + LIBS' \
'library_dirs = ["${libndtypes}/lib", "${libxnd}/lib"]' \
--replace-fail \
'runtime_library_dirs = ["$ORIGIN"]' \
'runtime_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib"]'
''
+ lib.optionalString (pythonAtLeast "3.12") ''
substituteInPlace python/xnd/util.h \
--replace-fail '->ob_digit[i]' '->long_value.ob_digit[i]'
'';
postInstall =
''
@ -39,9 +49,13 @@ buildPythonPackage {
'';
checkPhase = ''
runHook preCheck
pushd python
mv xnd _xnd
python test_xnd.py
popd
runHook postCheck
'';
}

View file

@ -20,6 +20,7 @@
requests,
scipy,
setuptools,
setuptools-scm,
seaborn,
statsmodels,
tqdm,
@ -30,7 +31,7 @@
buildPythonPackage rec {
pname = "ydata-profiling";
version = "4.12.1";
version = "4.16.1";
pyproject = true;
disabled = pythonOlder "3.7";
@ -39,18 +40,23 @@ buildPythonPackage rec {
owner = "ydataai";
repo = "ydata-profiling";
tag = "v${version}";
hash = "sha256-K2axhkshKnJO8sKqSWW4AbdQXsVlR6xwuhRP3Q5J08E=";
hash = "sha256-gmMEW1aAwBar/xR22Wm98hbjP20ty3idvxfqCJ1uRGM=";
};
preBuild = ''
echo ${version} > VERSION
'';
build-system = [ setuptools ];
build-system = [
setuptools
setuptools-scm
];
pythonRelaxDeps = [
"imagehash"
"scipy"
"matplotlib"
"multimethod"
"numpy"
];
dependencies = [
@ -69,6 +75,7 @@ buildPythonPackage rec {
requests
scipy
seaborn
setuptools
statsmodels
tqdm
typeguard
@ -101,12 +108,12 @@ buildPythonPackage rec {
pythonImportsCheck = [ "ydata_profiling" ];
meta = with lib; {
meta = {
description = "Create HTML profiling reports from Pandas DataFrames";
homepage = "https://ydata-profiling.ydata.ai";
changelog = "https://github.com/ydataai/ydata-profiling/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
mainProgram = "ydata_profiling";
};
}

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