about summary refs log tree commit diff
path: root/pkgs/development/python-modules/embrace
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-05-22 10:56:32 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2022-05-22 10:56:32 +0200
commit18c617fb3692c5d176ea1579e2adc33a74b39329 (patch)
tree2be9cbf4ccdf2274a9d33f3fa503747a2c8d95c3 /pkgs/development/python-modules/embrace
parentd24c5a32aeb245027525f9a7fe48a34ae7b8d5c6 (diff)
python310Packages.embrace: disable on older Python releases
Diffstat (limited to 'pkgs/development/python-modules/embrace')
-rw-r--r--pkgs/development/python-modules/embrace/default.nix31
1 files changed, 25 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/embrace/default.nix b/pkgs/development/python-modules/embrace/default.nix
index 9b80c5d689b1e..c342c9be5a0bd 100644
--- a/pkgs/development/python-modules/embrace/default.nix
+++ b/pkgs/development/python-modules/embrace/default.nix
@@ -1,21 +1,40 @@
-{ stdenv, lib, buildPythonPackage, fetchFromSourcehut,
-  sqlparse, wrapt, pytestCheckHook }:
+{ lib
+, stdenv
+, buildPythonPackage
+, fetchFromSourcehut
+, pytestCheckHook
+, pythonOlder
+, sqlparse
+, wrapt
+}:
 
 buildPythonPackage rec {
   pname = "embrace";
   version = "4.1.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromSourcehut {
     vc = "hg";
     owner = "~olly";
     repo = "embrace-sql";
     rev = "v${version}-release";
-    sha256 = "sha256-R6Ug4f8KFZNzaNWqWZkLvOwtsawCuerzvHlysr7bd6M=";
+    hash = "sha256-R6Ug4f8KFZNzaNWqWZkLvOwtsawCuerzvHlysr7bd6M=";
   };
 
-  propagatedBuildInputs = [ sqlparse wrapt ];
-  checkInputs = [ pytestCheckHook ];
-  pythonImportsCheck = [ "embrace" ];
+  propagatedBuildInputs = [
+    sqlparse
+    wrapt
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [
+    "embrace"
+  ];
 
   # Some test for hot-reload fails on Darwin, but the rest of the library
   # should remain usable. (https://todo.sr.ht/~olly/embrace-sql/4)