Skip to content

Commit

Permalink
🔥 Remove setuptools-generate and help2man
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Nov 10, 2023
1 parent 0833273 commit c983b99
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 58 deletions.
16 changes: 0 additions & 16 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@
sha256 = "sha256-90ELWRVHkdLLQoUIQuE1yc2F1Rj9UOMcxmKTmK1S8yY=";
};
};
help2man = {
pname = "help2man";
version = "0.0.9";
src = fetchurl {
url = "https://pypi.org/packages/source/h/help2man/help2man-0.0.9.tar.gz";
sha256 = "sha256-V/oY7VnulJUqI0EVPq40/JACDLTrsmzopzJDNBGc+Bo=";
};
};
manpager = {
pname = "manpager";
version = "0.0.2";
Expand Down Expand Up @@ -79,14 +71,6 @@
sha256 = "sha256-3gE1w5rwn5qXDDrNlZnX07FnukwKbu2E89Y+uKVTnqg=";
};
};
setuptools-generate = {
pname = "setuptools-generate";
version = "0.0.6";
src = fetchurl {
url = "https://pypi.org/packages/source/s/setuptools-generate/setuptools-generate-0.0.6.tar.gz";
sha256 = "sha256-biMkHZ7P39355QpJXzCStgvjym9KXhFsjD5/K2RrpyU=";
};
};
sublime-syntax-language-server = {
pname = "sublime-syntax-language-server";
version = "0.0.4";
Expand Down
5 changes: 2 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let

mySources = callPackage ./_sources/generated.nix { };

# https://github.com/NixOS-CN/flakes/pull/51
# https://github.com/NixOS/nixpkgs/pull/243429
netease-cloud-music = callPackage ./pkgs/applications/audio/netease-cloud-music { };
# https://github.com/NixOS/nixpkgs/pull/243032
g3kb-switch = callPackage ./pkgs/tools/misc/g3kb-switch { };
Expand All @@ -30,8 +30,7 @@ let
bash-prompt = callPackage ./pkgs/shells/bash/bash-prompt { };
undollar = callPackage ./pkgs/tools/misc/undollar { };
manpager = callPackage ./pkgs/tools/misc/manpager { };
help2man = callPackage ./pkgs/development/python-modules/help2man { };
setuptools-generate = callPackage ./pkgs/development/python-modules/setuptools-generate { };
# https://github.com/NixOS/nixpkgs/issues/261342
repl-python-wakatime = callPackage ./pkgs/development/python-modules/repl-python-wakatime { };
repl-python-codestats = callPackage ./pkgs/development/python-modules/repl-python-codestats { };
translate-shell = callPackage ./pkgs/development/python-modules/translate-shell { };
Expand Down
8 changes: 0 additions & 8 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ fetch.github = "Freed-Wu/undollar"
src.github = "Freed-Wu/manpager"
fetch.github = "Freed-Wu/manpager"

[help2man]
src.pypi = "help2man"
fetch.pypi = "help2man"

[setuptools-generate]
src.pypi = "setuptools-generate"
fetch.pypi = "setuptools-generate"

[repl-python-wakatime]
src.pypi = "repl-python-wakatime"
fetch.pypi = "repl-python-wakatime"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
}:

with python3.pkgs;
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/python-modules/mulimgviewer/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, wrapGAppsHook
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
{ mySources
, python3
, help2man
, lib
}:

with python3.pkgs;

buildPythonPackage rec {
inherit (mySources.setuptools-generate) pname version src;
inherit (mySources.pkgbuild-language-server) pname version src;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
setuptools
click
help2man
markdown-it-py
shtab
tomli
pygls
platformdirs
];
nativeBuildInputs = [
setuptools-generate
setuptools-scm
];
pythonImportsCheck = [
"setuptools_generate"
"pkgbuild_language_server"
];

meta = with lib; {
homepage = "https://setuptools-generate.readthedocs.io";
description = "Generate shell completions and man page when building a python package";
homepage = "https://pkgbuild-language-server.readthedocs.io";
description = "PKGBUILD language server";
license = licenses.gpl3;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
{ mySources
, python3
, lib
}:

with python3.pkgs;

buildPythonPackage rec {
inherit (mySources.help2man) pname version src;
inherit (mySources.portage-language-server) pname version src;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
jinja2
pygls
platformdirs
];
nativeBuildInputs = [
setuptools
shtab
setuptools-generate
setuptools-scm
];
pythonImportsCheck = [
"help2man"
"portage_language_server"
];

meta = with lib; {
homepage = "https://help2man.readthedocs.io";
description = "Convert --help and --version to man page";
homepage = "https://portage-language-server.readthedocs.io";
description = "portage language server";
license = licenses.gpl3;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, repl-python-wakatime
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ mySources
, python3
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
, repl-python-wakatime
}:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
}:

with python3.pkgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ mySources
, python3
, lib
, setuptools-generate
}:

with python3.pkgs;
Expand Down

0 comments on commit c983b99

Please sign in to comment.