about summary refs log tree commit diff
path: root/pkgs/development/python-modules/radian/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/radian/default.nix')
-rw-r--r--pkgs/development/python-modules/radian/default.nix70
1 files changed, 40 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/radian/default.nix b/pkgs/development/python-modules/radian/default.nix
index 09d0c38c4157..e42e16f307c2 100644
--- a/pkgs/development/python-modules/radian/default.nix
+++ b/pkgs/development/python-modules/radian/default.nix
@@ -1,33 +1,36 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, pytestCheckHook
-, pyte
-, pexpect
-, ptyprocess
-, jedi
-, git
-, lineedit
-, prompt-toolkit
-, pygments
-, rchitect
-, R
-, rPackages
-, pythonOlder
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  pytestCheckHook,
+  pyte,
+  pexpect,
+  ptyprocess,
+  pythonOlder,
+  jedi,
+  git,
+  lineedit,
+  prompt-toolkit,
+  pygments,
+  rchitect,
+  R,
+  rPackages,
+  setuptools,
+  setuptools-scm,
 }:
 
 buildPythonPackage rec {
   pname = "radian";
-  version = "0.6.12";
-  format = "setuptools";
+  version = "0.6.13";
+  pyproject = true;
 
-  disabled = pythonOlder "3.7";
+  disabled = pythonOlder "3.9";
 
   src = fetchFromGitHub {
     owner = "randy3k";
     repo = pname;
     rev = "refs/tags/v${version}";
-    hash = "sha256-cojKbDNqcUay5RxvWszQ96eC4jVI4G7iRv/ZYWgidCQ=";
+    hash = "sha256-gz2VczAgVbvISzvY/v0GvZ/Erv6ipZwPU61r6OJ+3Fo=";
   };
 
   postPatch = ''
@@ -35,19 +38,26 @@ buildPythonPackage rec {
       --replace '"pytest-runner"' ""
   '';
 
+  build-system = [
+    setuptools
+    setuptools-scm
+  ];
+
   nativeBuildInputs = [
     R # needed at setup time to detect R_HOME
   ];
 
-  propagatedBuildInputs = [
-    lineedit
-    prompt-toolkit
-    pygments
-    rchitect
-  ] ++ (with rPackages; [
-    reticulate
-    askpass
-  ]);
+  propagatedBuildInputs =
+    [
+      lineedit
+      prompt-toolkit
+      pygments
+      rchitect
+    ]
+    ++ (with rPackages; [
+      reticulate
+      askpass
+    ]);
 
   nativeCheckInputs = [
     pytestCheckHook
@@ -68,7 +78,7 @@ buildPythonPackage rec {
   pythonImportsCheck = [ "radian" ];
 
   meta = with lib; {
-    description = "A 21 century R console";
+    description = "21 century R console";
     mainProgram = "radian";
     homepage = "https://github.com/randy3k/radian";
     changelog = "https://github.com/randy3k/radian/blob/v${version}/CHANGELOG.md";