Skip to content

Commit 4d19b24

Browse files
Merge master into staging-next
2 parents ec6cecf + fb297f0 commit 4d19b24

File tree

7 files changed

+73
-16
lines changed

7 files changed

+73
-16
lines changed

doc/languages-frameworks/python.section.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,6 +2117,7 @@ because we can only provide security support for non-vendored dependencies.
21172117

21182118
We recommend [nix-init](https://github.com/nix-community/nix-init) for creating new python packages within nixpkgs,
21192119
as it already prefetches the source, parses dependencies for common formats and prefills most things in `meta`.
2120+
When using the tool, pull from the original source repository instead of PyPI, if possible.
21202121

21212122
See also [contributing section](#contributing).
21222123

@@ -2190,6 +2191,8 @@ The following rules are desired to be respected:
21902191
that characters should be converted to lowercase and `.` and `_` should be
21912192
replaced by a single `-` (foo-bar-baz instead of Foo__Bar.baz).
21922193
If necessary, `pname` has to be given a different value within `fetchPypi`.
2194+
* It's generally preferable to fetch `src` directly from the repo and not from
2195+
PyPI. Use `fetchPypi` when there's a clear technical reason to do so.
21932196
* Packages from sources such as GitHub and GitLab that do not exist on PyPI
21942197
should not use a name that is already used on PyPI. When possible, they should
21952198
use the package repository name prefixed with the owner (e.g. organization) name

nixos/modules/services/web-apps/movim.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let
5858
// lib.optionalAttrs (cfg.database.type == "postgresql") {
5959
withPostgreSQL = true;
6060
}
61-
// lib.optionalAttrs (cfg.database.type == "mysql") {
61+
// lib.optionalAttrs (cfg.database.type == "mariadb") {
6262
withMySQL = true;
6363
}
6464
);
@@ -168,7 +168,7 @@ let
168168
dbService =
169169
{
170170
"postgresql" = "postgresql.service";
171-
"mysql" = "mysql.service";
171+
"mariadb" = "mysql.service";
172172
}
173173
.${cfg.database.type};
174174

@@ -475,10 +475,10 @@ in
475475
database = {
476476
type = mkOption {
477477
type = types.enum [
478-
"mysql"
478+
"mariadb"
479479
"postgresql"
480480
];
481-
example = "mysql";
481+
example = "mariadb";
482482
default = "postgresql";
483483
description = "Database engine to use.";
484484
};
@@ -621,7 +621,7 @@ in
621621
DB_DRIVER =
622622
{
623623
"postgresql" = "pgsql";
624-
"mysql" = "mysql";
624+
"mariadb" = "mysql";
625625
}
626626
.${cfg.database.type};
627627
DB_HOST = "localhost";
@@ -791,7 +791,7 @@ in
791791
}
792792
);
793793

794-
mysql = mkIf (cfg.database.createLocally && cfg.database.type == "mysql") {
794+
mysql = mkIf (cfg.database.createLocally && cfg.database.type == "mariadb") {
795795
enable = mkDefault true;
796796
package = mkDefault pkgs.mariadb;
797797
ensureDatabases = [ cfg.database.name ];

pkgs/by-name/gh/gh-gei/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
buildDotnetModule rec {
99
pname = "gh-gei";
10-
version = "1.14.0";
10+
version = "1.15.0";
1111

1212
src = fetchFromGitHub {
1313
owner = "github";
1414
repo = "gh-gei";
1515
rev = "v${version}";
16-
hash = "sha256-Kjva6E0P+O1+R9EFNYQWt0Tte/DFaCActmJU58+6G6I=";
16+
hash = "sha256-33Npwf4C6IFrrsIRq4+udphfovaCXQ8JfN0yzfxIRq0=";
1717
};
1818

1919
dotnet-sdk = dotnetCorePackages.sdk_8_0_4xx;

pkgs/by-name/mo/movim/package.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
php,
77
phpCfg ? null,
88
withPostgreSQL ? true, # “strongly recommended” according to docs
9-
withMySQL ? false,
9+
withMariaDB ? false,
1010
minifyStaticFiles ? false, # default files are often not minified
1111
esbuild,
1212
lightningcss,
@@ -44,13 +44,13 @@ let
4444
in
4545
php.buildComposerProject2 (finalAttrs: {
4646
pname = "movim";
47-
version = "0.30";
47+
version = "0.30.1";
4848

4949
src = fetchFromGitHub {
5050
owner = "movim";
5151
repo = "movim";
5252
tag = "v${finalAttrs.version}";
53-
hash = "sha256-rW751UhDBhakOrAT4BOiRDPpGldf1EwNZY8iavXlpLk=";
53+
hash = "sha256-MjP1rLyWJWrUAHrOKAwGN3A0wIq4iPaXlaUbtPs3F6U=";
5454
};
5555

5656
php = php.buildEnv (
@@ -71,7 +71,7 @@ php.buildComposerProject2 (finalAttrs: {
7171
all.pdo_pgsql
7272
all.pgsql
7373
]
74-
++ lib.optionals withMySQL [
74+
++ lib.optionals withMariaDB [
7575
all.mysqli
7676
all.mysqlnd
7777
all.pdo_mysql
@@ -88,7 +88,7 @@ php.buildComposerProject2 (finalAttrs: {
8888
++ lib.optional minify.style.enable lightningcss
8989
++ lib.optional minify.svg.enable scour;
9090

91-
vendorHash = "sha256-NuX6CX2QXea8BcL0nzFOdxIBs36igD8lvixna+vsviM=";
91+
vendorHash = "sha256-7jb4/UgnMcXtLCihwk4rr0HLw99FgiYeYJVATGxM/D4=";
9292

9393
postPatch = ''
9494
# Our modules are already wrapped, removes missing *.so warnings;

pkgs/by-name/sv/svix-server/package.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010

1111
rustPlatform.buildRustPackage rec {
1212
pname = "svix-server";
13-
version = "1.64.1";
13+
version = "1.65.0";
1414

1515
src = fetchFromGitHub {
1616
owner = "svix";
1717
repo = "svix-webhooks";
1818
rev = "v${version}";
19-
hash = "sha256-ZaSUTGv/l54tKvXd2hUeQYKTUmQOUm2dpZE7J8auWb0=";
19+
hash = "sha256-SmNiQeVoTASMW6T5mcInZLlNok32olWRr2+daq/c684=";
2020
};
2121

2222
sourceRoot = "${src.name}/server";
2323

2424
useFetchCargoVendor = true;
25-
cargoHash = "sha256-h19xpILPudOMSC99wBB1CA/981eK+FHgsGJAJOFPeuw=";
25+
cargoHash = "sha256-vpPWEYVKEboubbWeuxyXz/M53Ura8gSpuneH/L7Qtmw=";
2626

2727
nativeBuildInputs = [ pkg-config ];
2828

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitea,
5+
flit-core,
6+
pytestCheckHook,
7+
}:
8+
9+
buildPythonPackage rec {
10+
version = "0.8.0";
11+
pname = "pylit";
12+
pyproject = true;
13+
14+
src = fetchFromGitea {
15+
domain = "codeberg.org";
16+
owner = "milde";
17+
repo = "pylit";
18+
tag = version;
19+
hash = "sha256-wr2Gz5DCeCVULe9k/DHd+Jhbfc4q4wSoJrcWaJUvWWw=";
20+
# fix hash mismatch on linux/darwin platforms
21+
postFetch = ''
22+
rm -f $out/doc/logo/py{L,l}it-bold-framed.svg
23+
'';
24+
};
25+
26+
# replace legacy nose module with pytest
27+
postPatch = ''
28+
substituteInPlace test/{pylit,pylit_ui}_test.py \
29+
--replace-fail "import nose" "import pytest" \
30+
--replace-fail "nose.runmodule()" "pytest.main()"
31+
'';
32+
33+
build-system = [
34+
flit-core
35+
];
36+
37+
pythonImportsCheck = [ "pylit" ];
38+
39+
nativeCheckInputs = [
40+
pytestCheckHook
41+
];
42+
43+
pytestFlagsArray = [ "test" ];
44+
45+
meta = {
46+
homepage = "https://codeberg.org/milde/pylit";
47+
description = "Bidirectional text/code converter";
48+
mainProgram = "pylit";
49+
license = lib.licenses.gpl3Plus;
50+
maintainers = with lib.maintainers; [ qbisi ];
51+
};
52+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12671,6 +12671,8 @@ self: super: with self; {
1267112671

1267212672
pylion = callPackage ../development/python-modules/pylion { };
1267312673

12674+
pylit = callPackage ../development/python-modules/pylit { };
12675+
1267412676
pylitejet = callPackage ../development/python-modules/pylitejet { };
1267512677

1267612678
pylitterbot = callPackage ../development/python-modules/pylitterbot { };

0 commit comments

Comments
 (0)