about summary refs log tree commit diff
path: root/pkgs/development/tools/database/pyrseas
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-10-22 02:35:20 +0000
committerAaron Jheng <wentworth@outlook.com>2022-10-22 02:35:20 +0000
commitf3281e08c2ccde7bdf99ee2bdfdf5db9888cb4d2 (patch)
tree2f936ca7ae02e23587d96fc65d211a76fb1433ec /pkgs/development/tools/database/pyrseas
parent0b8181e2640ddb98ac1c4e76cd5e8e68dde4dd79 (diff)
pyrseas: 0.8.0 -> 0.9.1
Diffstat (limited to 'pkgs/development/tools/database/pyrseas')
-rw-r--r--pkgs/development/tools/database/pyrseas/default.nix36
1 files changed, 20 insertions, 16 deletions
diff --git a/pkgs/development/tools/database/pyrseas/default.nix b/pkgs/development/tools/database/pyrseas/default.nix
index 220554f95d90e..cf93f114e7db5 100644
--- a/pkgs/development/tools/database/pyrseas/default.nix
+++ b/pkgs/development/tools/database/pyrseas/default.nix
@@ -1,41 +1,45 @@
-{ lib, python2Packages, fetchFromGitHub }:
+{ lib, python3Packages, fetchFromGitHub }:
 
 let
-  pgdbconn = python2Packages.buildPythonPackage rec {
+  pgdbconn = python3Packages.buildPythonPackage rec {
     pname = "pgdbconn";
     version = "0.8.0";
+
     src = fetchFromGitHub {
       owner = "perseas";
       repo = "pgdbconn";
       rev = "v${version}";
       sha256 = "09r4idk5kmqi3yig7ip61r6js8blnmac5n4q32cdcbp1rcwzdn6z";
     };
+
     # The tests are impure (they try to access a PostgreSQL server)
     doCheck = false;
-    propagatedBuildInputs = [
-      python2Packages.psycopg2
-      python2Packages.pytest
-    ];
+
+    propagatedBuildInputs = with python3Packages; [ psycopg2 pytest ];
   };
 in
 
-python2Packages.buildPythonApplication {
+python3Packages.buildPythonApplication rec {
   pname = "pyrseas";
-  version = "0.8.0";
+  version = "0.9.1";
+
   src = fetchFromGitHub {
     owner = "perseas";
     repo = "Pyrseas";
-    rev = "2e9be763e61168cf20d28bd69010dc5875bd7b97";
-    sha256 = "1h9vahplqh0rzqjsdq64qqar6hj1bpbc6nl1pqwwgca56385br8r";
+    rev = version;
+    sha256 = "sha256-+MxnxvbLMxK1Ak+qKpKe3GHbzzC+XHO0eR7rl4ON9H4=";
   };
-  # The tests are impure (they try to access a PostgreSQL server)
-  doCheck = false;
-  propagatedBuildInputs = [
-    python2Packages.psycopg2
-    python2Packages.pytest
-    python2Packages.pyyaml
+
+  propagatedBuildInputs = with python3Packages; [
+    psycopg2
+    pytest
+    pyyaml
     pgdbconn
   ];
+
+  # The tests are impure (they try to access a PostgreSQL server)
+  doCheck = false;
+
   meta = {
     description = "A declarative language to describe PostgreSQL databases";
     homepage = "https://perseas.github.io/";