diff options
Diffstat (limited to 'pkgs/development/python-modules/embrace/default.nix')
-rw-r--r-- | pkgs/development/python-modules/embrace/default.nix | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/embrace/default.nix b/pkgs/development/python-modules/embrace/default.nix index 414425ed6f2..c342c9be5a0 100644 --- a/pkgs/development/python-modules/embrace/default.nix +++ b/pkgs/development/python-modules/embrace/default.nix @@ -1,20 +1,44 @@ -{ lib, buildPythonPackage, fetchFromSourcehut, sqlparse, wrapt, pytestCheckHook }: +{ lib +, stdenv +, buildPythonPackage +, fetchFromSourcehut +, pytestCheckHook +, pythonOlder +, sqlparse +, wrapt +}: buildPythonPackage rec { pname = "embrace"; - version = "4.0.0"; + 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-G/7FeKlMbOWobQOpD7/0JiTFpf8oWZ1TxPpDS9wrKMo="; + 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) + doCheck = !stdenv.isDarwin; meta = with lib; { description = "Embrace SQL keeps your SQL queries in SQL files"; |