1{ lib, buildPythonPackage, fetchFromSourcehut, sqlparse, wrapt, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "embrace"; 5 version = "4.0.0"; 6 7 src = fetchFromSourcehut { 8 vc = "hg"; 9 owner = "~olly"; 10 repo = "embrace-sql"; 11 rev = "v${version}-release"; 12 sha256 = "sha256-G/7FeKlMbOWobQOpD7/0JiTFpf8oWZ1TxPpDS9wrKMo="; 13 }; 14 15 propagatedBuildInputs = [ sqlparse wrapt ]; 16 checkInputs = [ pytestCheckHook ]; 17 pythonImportsCheck = [ "embrace" ]; 18 19 meta = with lib; { 20 description = "Embrace SQL keeps your SQL queries in SQL files"; 21 homepage = "https://pypi.org/project/embrace/"; 22 license = licenses.asl20; 23 maintainers = with maintainers; [ pacien ]; 24 }; 25}