Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.9"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "long2ice"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-BjjC8pvvQfnvaExhei+F4a2eryHiRbI527BZFLpJk2w="; 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}