ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / aiomysql / default.nix
blob420b3aaf8b9c97ba6fbf80e9155117a6f673ae7a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pymysql
5 , pythonOlder
6 , setuptools-scm
7 , setuptools-scm-git-archive
8 }:
10 buildPythonPackage rec {
11   pname = "aiomysql";
12   version = "0.1.1";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "aio-libs";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-rYEos2RuE2xI59httYlN21smBH4/fU4uT48FWwrI6Qg=";
22   };
24   nativeBuildInputs = [
25     setuptools-scm
26     setuptools-scm-git-archive
27   ];
29   propagatedBuildInputs = [
30     pymysql
31   ];
33   # Tests require MySQL database
34   doCheck = false;
36   pythonImportsCheck = [
37     "aiomysql"
38   ];
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   };