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