at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pg8000, 6 pytest-asyncio, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10 setuptools-scm, 11 sphinx-rtd-theme, 12 sphinxHook, 13}: 14 15buildPythonPackage rec { 16 pname = "aiosql"; 17 version = "13.4"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 outputs = [ 23 "doc" 24 "out" 25 ]; 26 27 src = fetchFromGitHub { 28 owner = "nackjicholson"; 29 repo = "aiosql"; 30 tag = version; 31 hash = "sha256-a3pRzcDMXdaDs0ub6k5bPRwnk+RCbxZ7ceIt8/fMSPg="; 32 }; 33 34 sphinxRoot = "docs/source"; 35 36 nativeBuildInputs = [ 37 setuptools 38 setuptools-scm 39 sphinx-rtd-theme 40 sphinxHook 41 ]; 42 43 propagatedBuildInputs = [ pg8000 ]; 44 45 nativeCheckInputs = [ 46 pytest-asyncio 47 pytestCheckHook 48 ]; 49 50 pythonImportsCheck = [ "aiosql" ]; 51 52 meta = with lib; { 53 description = "Simple SQL in Python"; 54 homepage = "https://nackjicholson.github.io/aiosql/"; 55 changelog = "https://github.com/nackjicholson/aiosql/releases/tag/${src.tag}"; 56 license = with licenses; [ bsd2 ]; 57 maintainers = with maintainers; [ kaction ]; 58 }; 59}