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