lol

python3Packages.radian: convert to application

Radian is not used as a library, so it should be built using
`buildPythonApplication` and should be promoted to a top-level
attribute.

Update pkgs/top-level/all-packages.nix

Co-authored-by: Gavin John <gavinnjohn@gmail.com>

+19 -34
+4 -4
pkgs/applications/editors/vscode/extensions/reditorsupport.r/default.nix
··· 3 vscode-utils, 4 jq, 5 moreutils, 6 - python311Packages, 7 R, 8 rPackages, 9 }: 10 11 vscode-utils.buildVscodeMarketplaceExtension { ··· 20 moreutils 21 ]; 22 buildInputs = [ 23 - python311Packages.radian 24 R 25 rPackages.languageserver 26 ]; ··· 28 cd "$out/$installPrefix" 29 jq '.contributes.configuration.properties."r.rpath.mac".default = "${lib.getExe' R "R"}"' package.json | sponge package.json 30 jq '.contributes.configuration.properties."r.rpath.linux".default = "${lib.getExe' R "R"}"' package.json | sponge package.json 31 - jq '.contributes.configuration.properties."r.rterm.mac".default = "${lib.getExe python311Packages.radian}"' package.json | sponge package.json 32 - jq '.contributes.configuration.properties."r.rterm.linux".default = "${lib.getExe python311Packages.radian}"' package.json | sponge package.json 33 ''; 34 meta = { 35 changelog = "https://marketplace.visualstudio.com/items/REditorSupport.r/changelog";
··· 3 vscode-utils, 4 jq, 5 moreutils, 6 R, 7 rPackages, 8 + radian, 9 }: 10 11 vscode-utils.buildVscodeMarketplaceExtension { ··· 20 moreutils 21 ]; 22 buildInputs = [ 23 + radian 24 R 25 rPackages.languageserver 26 ]; ··· 28 cd "$out/$installPrefix" 29 jq '.contributes.configuration.properties."r.rpath.mac".default = "${lib.getExe' R "R"}"' package.json | sponge package.json 30 jq '.contributes.configuration.properties."r.rpath.linux".default = "${lib.getExe' R "R"}"' package.json | sponge package.json 31 + jq '.contributes.configuration.properties."r.rterm.mac".default = "${lib.getExe radian}"' package.json | sponge package.json 32 + jq '.contributes.configuration.properties."r.rterm.linux".default = "${lib.getExe radian}"' package.json | sponge package.json 33 ''; 34 meta = { 35 changelog = "https://marketplace.visualstudio.com/items/REditorSupport.r/changelog";
+14 -27
pkgs/development/python-modules/radian/default.nix pkgs/by-name/ra/radian/package.nix
··· 1 { 2 lib, 3 - buildPythonPackage, 4 fetchFromGitHub, 5 - pytestCheckHook, 6 - pyte, 7 - pexpect, 8 - ptyprocess, 9 - pythonOlder, 10 - jedi, 11 git, 12 - lineedit, 13 - prompt-toolkit, 14 - pygments, 15 - rchitect, 16 R, 17 rPackages, 18 - setuptools, 19 - setuptools-scm, 20 }: 21 22 - buildPythonPackage rec { 23 pname = "radian"; 24 version = "0.6.13"; 25 pyproject = true; 26 27 - disabled = pythonOlder "3.9"; 28 - 29 src = fetchFromGitHub { 30 owner = "randy3k"; 31 repo = "radian"; ··· 38 --replace '"pytest-runner"' "" 39 ''; 40 41 - build-system = [ 42 setuptools 43 setuptools-scm 44 ]; ··· 48 ]; 49 50 propagatedBuildInputs = 51 - [ 52 lineedit 53 prompt-toolkit 54 pygments 55 rchitect 56 - ] 57 ++ (with rPackages; [ 58 reticulate 59 askpass 60 ]); 61 62 - nativeCheckInputs = [ 63 - pytestCheckHook 64 - pyte 65 - pexpect 66 - ptyprocess 67 - jedi 68 - git 69 - ]; 70 71 makeWrapperArgs = [ "--set R_HOME ${R}/lib/R" ]; 72
··· 1 { 2 lib, 3 + python3Packages, 4 fetchFromGitHub, 5 git, 6 R, 7 rPackages, 8 }: 9 10 + python3Packages.buildPythonApplication rec { 11 pname = "radian"; 12 version = "0.6.13"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "randy3k"; 17 repo = "radian"; ··· 24 --replace '"pytest-runner"' "" 25 ''; 26 27 + build-system = with python3Packages; [ 28 setuptools 29 setuptools-scm 30 ]; ··· 34 ]; 35 36 propagatedBuildInputs = 37 + (with python3Packages; [ 38 lineedit 39 prompt-toolkit 40 pygments 41 rchitect 42 + ]) 43 ++ (with rPackages; [ 44 reticulate 45 askpass 46 ]); 47 48 + nativeCheckInputs = 49 + (with python3Packages; [ 50 + pytestCheckHook 51 + pyte 52 + pexpect 53 + ptyprocess 54 + jedi 55 + ]) 56 + ++ [ git ]; 57 58 makeWrapperArgs = [ "--set R_HOME ${R}/lib/R" ]; 59
-1
pkgs/top-level/all-packages.nix
··· 10175 spatial 10176 survival 10177 ]; 10178 - radian = python3Packages.radian; 10179 # Override this attribute to register additional libraries. 10180 packages = [ ]; 10181 # Override this attribute if you want to expose R with the same set of
··· 10175 spatial 10176 survival 10177 ]; 10178 # Override this attribute to register additional libraries. 10179 packages = [ ]; 10180 # Override this attribute if you want to expose R with the same set of
+1
pkgs/top-level/python-aliases.nix
··· 665 qcodes-loop = throw "qcodes-loop has been removed due to deprecation"; # added 2023-11-30 666 qiskit-aqua = throw "qiskit-aqua has been removed due to deprecation, with its functionality moved to different qiskit packages"; 667 rabbitpy = throw "rabbitpy has been removed, since it is unmaintained and broken"; # added 2023-07-01 668 radicale_infcloud = radicale-infcloud; # added 2024-01-07 669 radio_beam = radio-beam; # added 2023-11-04 670 ratelimiter = throw "ratelimiter has been removed, since it is unmaintained and broken"; # added 2023-10-21
··· 665 qcodes-loop = throw "qcodes-loop has been removed due to deprecation"; # added 2023-11-30 666 qiskit-aqua = throw "qiskit-aqua has been removed due to deprecation, with its functionality moved to different qiskit packages"; 667 rabbitpy = throw "rabbitpy has been removed, since it is unmaintained and broken"; # added 2023-07-01 668 + radian = throw "radian has been promoted to a top-level attribute name: `pkgs.radian`"; # added 2025-05-02 669 radicale_infcloud = radicale-infcloud; # added 2024-01-07 670 radio_beam = radio-beam; # added 2023-11-04 671 ratelimiter = throw "ratelimiter has been removed, since it is unmaintained and broken"; # added 2023-10-21
-2
pkgs/top-level/python-packages.nix
··· 14844 14845 rachiopy = callPackage ../development/python-modules/rachiopy { }; 14846 14847 - radian = callPackage ../development/python-modules/radian { }; 14848 - 14849 radicale-infcloud = callPackage ../development/python-modules/radicale-infcloud { 14850 radicale = pkgs.radicale.override { python3 = python; }; 14851 };
··· 14844 14845 rachiopy = callPackage ../development/python-modules/rachiopy { }; 14846 14847 radicale-infcloud = callPackage ../development/python-modules/radicale-infcloud { 14848 radicale = pkgs.radicale.override { python3 = python; }; 14849 };