Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 842 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pymysql 5, pythonOlder 6, setuptools-scm 7, setuptools-scm-git-archive 8}: 9 10buildPythonPackage rec { 11 pname = "aiomysql"; 12 version = "0.1.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "aio-libs"; 19 repo = pname; 20 rev = "v${version}"; 21 hash = "sha256-rYEos2RuE2xI59httYlN21smBH4/fU4uT48FWwrI6Qg="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools-scm 26 setuptools-scm-git-archive 27 ]; 28 29 propagatedBuildInputs = [ 30 pymysql 31 ]; 32 33 # Tests require MySQL database 34 doCheck = false; 35 36 pythonImportsCheck = [ 37 "aiomysql" 38 ]; 39 40 meta = with lib; { 41 description = "MySQL driver for asyncio"; 42 homepage = "https://github.com/aio-libs/aiomysql"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ costrouc ]; 45 }; 46}