1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchFromGitHub, 6 poetry-core, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "asyncmy"; 13 version = "0.2.10"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "long2ice"; 20 repo = "asyncmy"; 21 tag = "v${version}"; 22 hash = "sha256-HQZmt22yPYaWfJzL20+jBc855HR4dVW983Z0LrN1Xa0="; 23 }; 24 25 nativeBuildInputs = [ 26 cython 27 poetry-core 28 setuptools 29 ]; 30 31 # Not running tests as aiomysql is missing support for pymysql>=0.9.3 32 doCheck = false; 33 34 pythonImportsCheck = [ "asyncmy" ]; 35 36 meta = with lib; { 37 description = "Python module to interact with MySQL/mariaDB"; 38 homepage = "https://github.com/long2ice/asyncmy"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}