diff options
Diffstat (limited to 'pkgs/development/python-modules/aiomysql/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aiomysql/default.nix | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/aiomysql/default.nix b/pkgs/development/python-modules/aiomysql/default.nix index acd3cc56e4a84..093b6f0b96d3e 100644 --- a/pkgs/development/python-modules/aiomysql/default.nix +++ b/pkgs/development/python-modules/aiomysql/default.nix @@ -1,23 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pymysql -, pythonOlder -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pymysql, + pythonOlder, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { pname = "aiomysql"; version = "0.2.0"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "aio-libs"; - repo = pname; + repo = "aiomysql"; rev = "refs/tags/v${version}"; hash = "sha256-m/EgoBU3e+s3soXyYtACMDSjJfMLBOk/00qPtgawwQ8="; }; @@ -33,20 +35,17 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ + setuptools setuptools-scm wheel ]; - propagatedBuildInputs = [ - pymysql - ]; + propagatedBuildInputs = [ pymysql ]; # Tests require MySQL database doCheck = false; - pythonImportsCheck = [ - "aiomysql" - ]; + pythonImportsCheck = [ "aiomysql" ]; meta = with lib; { description = "MySQL driver for asyncio"; |