python310Packages.embrace: disable on older Python releases

main
Fabian Affolter 2 years ago
parent d24c5a32ae
commit 18c617fb36
  1. 31
      pkgs/development/python-modules/embrace/default.nix

@ -1,21 +1,40 @@
{ stdenv, lib, buildPythonPackage, fetchFromSourcehut, { lib
sqlparse, wrapt, pytestCheckHook }: , stdenv
, buildPythonPackage
, fetchFromSourcehut
, pytestCheckHook
, pythonOlder
, sqlparse
, wrapt
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "embrace"; pname = "embrace";
version = "4.1.0"; version = "4.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromSourcehut { src = fetchFromSourcehut {
vc = "hg"; vc = "hg";
owner = "~olly"; owner = "~olly";
repo = "embrace-sql"; repo = "embrace-sql";
rev = "v${version}-release"; rev = "v${version}-release";
sha256 = "sha256-R6Ug4f8KFZNzaNWqWZkLvOwtsawCuerzvHlysr7bd6M="; hash = "sha256-R6Ug4f8KFZNzaNWqWZkLvOwtsawCuerzvHlysr7bd6M=";
}; };
propagatedBuildInputs = [ sqlparse wrapt ]; propagatedBuildInputs = [
checkInputs = [ pytestCheckHook ]; sqlparse
pythonImportsCheck = [ "embrace" ]; wrapt
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"embrace"
];
# Some test for hot-reload fails on Darwin, but the rest of the library # 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) # should remain usable. (https://todo.sr.ht/~olly/embrace-sql/4)

Loading…
Cancel
Save