Skip to content

Commit 2f93467

Browse files
authored
mycli: 1.27.2 -> 1.29.2 (#384241)
2 parents 2d2d00d + 20c674d commit 2f93467

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

pkgs/by-name/my/mycli/package.nix

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
{
2-
fetchPypi,
32
lib,
3+
fetchFromGitHub,
44
python3Packages,
5+
writableTmpDirAsHomeHook,
56
}:
67

78
python3Packages.buildPythonApplication rec {
89
pname = "mycli";
9-
version = "1.27.2";
10+
version = "1.29.2";
1011
pyproject = true;
1112

12-
src = fetchPypi {
13-
inherit pname version;
14-
hash = "sha256-0R2k5hRkAJbqgGZEPXWUb48oFxTKMKiQZckf3F+VC3I=";
13+
src = fetchFromGitHub {
14+
owner = "dbcli";
15+
repo = "mycli";
16+
tag = "v${version}";
17+
hash = "sha256-d90HJszhnYDxFkvLmTkt/LZ6XctcBjgKBoMUD3m+Sdw=";
1518
};
1619

17-
pythonRelaxDeps = [
18-
"sqlparse"
19-
];
20+
pythonRelaxDeps = [ "sqlparse" ];
2021

2122
build-system = with python3Packages; [
2223
setuptools
24+
setuptools-scm
2325
];
2426

2527
dependencies =
@@ -37,14 +39,11 @@ python3Packages.buildPythonApplication rec {
3739
pyperclip
3840
sqlglot
3941
sqlparse
42+
pyfzf
4043
]
4144
++ cli-helpers.optional-dependencies.styles;
4245

43-
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
44-
45-
preCheck = ''
46-
export HOME="$(mktemp -d)"
47-
'';
46+
nativeCheckInputs = [ writableTmpDirAsHomeHook ] ++ (with python3Packages; [ pytestCheckHook ]);
4847

4948
disabledTestPaths = [
5049
"mycli/packages/paramiko_stub/__init__.py"

0 commit comments

Comments
 (0)