Merge pull request #173966 from fabaff/embrace-bump
python310Packages.embrace: disable on older Python releases
This commit is contained in:
commit
c98afed5ac
1 changed files with 25 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue