0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00

Merge master into staging-next

This commit is contained in:
nixpkgs-ci[bot] 2025-05-10 06:04:47 +00:00 committed by GitHub
commit 4d19b24788
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 73 additions and 16 deletions

View file

@ -2117,6 +2117,7 @@ because we can only provide security support for non-vendored dependencies.
We recommend [nix-init](https://github.com/nix-community/nix-init) for creating new python packages within nixpkgs, We recommend [nix-init](https://github.com/nix-community/nix-init) for creating new python packages within nixpkgs,
as it already prefetches the source, parses dependencies for common formats and prefills most things in `meta`. as it already prefetches the source, parses dependencies for common formats and prefills most things in `meta`.
When using the tool, pull from the original source repository instead of PyPI, if possible.
See also [contributing section](#contributing). See also [contributing section](#contributing).
@ -2190,6 +2191,8 @@ The following rules are desired to be respected:
that characters should be converted to lowercase and `.` and `_` should be that characters should be converted to lowercase and `.` and `_` should be
replaced by a single `-` (foo-bar-baz instead of Foo__Bar.baz). replaced by a single `-` (foo-bar-baz instead of Foo__Bar.baz).
If necessary, `pname` has to be given a different value within `fetchPypi`. If necessary, `pname` has to be given a different value within `fetchPypi`.
* It's generally preferable to fetch `src` directly from the repo and not from
PyPI. Use `fetchPypi` when there's a clear technical reason to do so.
* Packages from sources such as GitHub and GitLab that do not exist on PyPI * Packages from sources such as GitHub and GitLab that do not exist on PyPI
should not use a name that is already used on PyPI. When possible, they should should not use a name that is already used on PyPI. When possible, they should
use the package repository name prefixed with the owner (e.g. organization) name use the package repository name prefixed with the owner (e.g. organization) name

View file

@ -58,7 +58,7 @@ let
// lib.optionalAttrs (cfg.database.type == "postgresql") { // lib.optionalAttrs (cfg.database.type == "postgresql") {
withPostgreSQL = true; withPostgreSQL = true;
} }
// lib.optionalAttrs (cfg.database.type == "mysql") { // lib.optionalAttrs (cfg.database.type == "mariadb") {
withMySQL = true; withMySQL = true;
} }
); );
@ -168,7 +168,7 @@ let
dbService = dbService =
{ {
"postgresql" = "postgresql.service"; "postgresql" = "postgresql.service";
"mysql" = "mysql.service"; "mariadb" = "mysql.service";
} }
.${cfg.database.type}; .${cfg.database.type};
@ -475,10 +475,10 @@ in
database = { database = {
type = mkOption { type = mkOption {
type = types.enum [ type = types.enum [
"mysql" "mariadb"
"postgresql" "postgresql"
]; ];
example = "mysql"; example = "mariadb";
default = "postgresql"; default = "postgresql";
description = "Database engine to use."; description = "Database engine to use.";
}; };
@ -621,7 +621,7 @@ in
DB_DRIVER = DB_DRIVER =
{ {
"postgresql" = "pgsql"; "postgresql" = "pgsql";
"mysql" = "mysql"; "mariadb" = "mysql";
} }
.${cfg.database.type}; .${cfg.database.type};
DB_HOST = "localhost"; DB_HOST = "localhost";
@ -791,7 +791,7 @@ in
} }
); );
mysql = mkIf (cfg.database.createLocally && cfg.database.type == "mysql") { mysql = mkIf (cfg.database.createLocally && cfg.database.type == "mariadb") {
enable = mkDefault true; enable = mkDefault true;
package = mkDefault pkgs.mariadb; package = mkDefault pkgs.mariadb;
ensureDatabases = [ cfg.database.name ]; ensureDatabases = [ cfg.database.name ];

View file

@ -7,13 +7,13 @@
buildDotnetModule rec { buildDotnetModule rec {
pname = "gh-gei"; pname = "gh-gei";
version = "1.14.0"; version = "1.15.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "github"; owner = "github";
repo = "gh-gei"; repo = "gh-gei";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-Kjva6E0P+O1+R9EFNYQWt0Tte/DFaCActmJU58+6G6I="; hash = "sha256-33Npwf4C6IFrrsIRq4+udphfovaCXQ8JfN0yzfxIRq0=";
}; };
dotnet-sdk = dotnetCorePackages.sdk_8_0_4xx; dotnet-sdk = dotnetCorePackages.sdk_8_0_4xx;

View file

@ -6,7 +6,7 @@
php, php,
phpCfg ? null, phpCfg ? null,
withPostgreSQL ? true, # “strongly recommended” according to docs withPostgreSQL ? true, # “strongly recommended” according to docs
withMySQL ? false, withMariaDB ? false,
minifyStaticFiles ? false, # default files are often not minified minifyStaticFiles ? false, # default files are often not minified
esbuild, esbuild,
lightningcss, lightningcss,
@ -44,13 +44,13 @@ let
in in
php.buildComposerProject2 (finalAttrs: { php.buildComposerProject2 (finalAttrs: {
pname = "movim"; pname = "movim";
version = "0.30"; version = "0.30.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "movim"; owner = "movim";
repo = "movim"; repo = "movim";
tag = "v${finalAttrs.version}"; tag = "v${finalAttrs.version}";
hash = "sha256-rW751UhDBhakOrAT4BOiRDPpGldf1EwNZY8iavXlpLk="; hash = "sha256-MjP1rLyWJWrUAHrOKAwGN3A0wIq4iPaXlaUbtPs3F6U=";
}; };
php = php.buildEnv ( php = php.buildEnv (
@ -71,7 +71,7 @@ php.buildComposerProject2 (finalAttrs: {
all.pdo_pgsql all.pdo_pgsql
all.pgsql all.pgsql
] ]
++ lib.optionals withMySQL [ ++ lib.optionals withMariaDB [
all.mysqli all.mysqli
all.mysqlnd all.mysqlnd
all.pdo_mysql all.pdo_mysql
@ -88,7 +88,7 @@ php.buildComposerProject2 (finalAttrs: {
++ lib.optional minify.style.enable lightningcss ++ lib.optional minify.style.enable lightningcss
++ lib.optional minify.svg.enable scour; ++ lib.optional minify.svg.enable scour;
vendorHash = "sha256-NuX6CX2QXea8BcL0nzFOdxIBs36igD8lvixna+vsviM="; vendorHash = "sha256-7jb4/UgnMcXtLCihwk4rr0HLw99FgiYeYJVATGxM/D4=";
postPatch = '' postPatch = ''
# Our modules are already wrapped, removes missing *.so warnings; # Our modules are already wrapped, removes missing *.so warnings;

View file

@ -10,19 +10,19 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "svix-server"; pname = "svix-server";
version = "1.64.1"; version = "1.65.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "svix"; owner = "svix";
repo = "svix-webhooks"; repo = "svix-webhooks";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-ZaSUTGv/l54tKvXd2hUeQYKTUmQOUm2dpZE7J8auWb0="; hash = "sha256-SmNiQeVoTASMW6T5mcInZLlNok32olWRr2+daq/c684=";
}; };
sourceRoot = "${src.name}/server"; sourceRoot = "${src.name}/server";
useFetchCargoVendor = true; useFetchCargoVendor = true;
cargoHash = "sha256-h19xpILPudOMSC99wBB1CA/981eK+FHgsGJAJOFPeuw="; cargoHash = "sha256-vpPWEYVKEboubbWeuxyXz/M53Ura8gSpuneH/L7Qtmw=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View file

@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitea,
flit-core,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "0.8.0";
pname = "pylit";
pyproject = true;
src = fetchFromGitea {
domain = "codeberg.org";
owner = "milde";
repo = "pylit";
tag = version;
hash = "sha256-wr2Gz5DCeCVULe9k/DHd+Jhbfc4q4wSoJrcWaJUvWWw=";
# fix hash mismatch on linux/darwin platforms
postFetch = ''
rm -f $out/doc/logo/py{L,l}it-bold-framed.svg
'';
};
# replace legacy nose module with pytest
postPatch = ''
substituteInPlace test/{pylit,pylit_ui}_test.py \
--replace-fail "import nose" "import pytest" \
--replace-fail "nose.runmodule()" "pytest.main()"
'';
build-system = [
flit-core
];
pythonImportsCheck = [ "pylit" ];
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [ "test" ];
meta = {
homepage = "https://codeberg.org/milde/pylit";
description = "Bidirectional text/code converter";
mainProgram = "pylit";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ qbisi ];
};
}

View file

@ -12671,6 +12671,8 @@ self: super: with self; {
pylion = callPackage ../development/python-modules/pylion { }; pylion = callPackage ../development/python-modules/pylion { };
pylit = callPackage ../development/python-modules/pylit { };
pylitejet = callPackage ../development/python-modules/pylitejet { }; pylitejet = callPackage ../development/python-modules/pylitejet { };
pylitterbot = callPackage ../development/python-modules/pylitterbot { }; pylitterbot = callPackage ../development/python-modules/pylitterbot { };