diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-12-29 13:07:02 -0500 |
---|---|---|
committer | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-12-29 13:37:24 -0500 |
commit | f1a3393769d18b277d31cb673fe4975410d9b23f (patch) | |
tree | e996b02cbd9d659db1e1045a4f529cb5c01ae613 /pkgs/development/python-modules/aiomysql | |
parent | 16a6c127324c470592585e8f95746106f433e0e4 (diff) | |
download | nixpkgs-f1a3393769d18b277d31cb673fe4975410d9b23f.tar nixpkgs-f1a3393769d18b277d31cb673fe4975410d9b23f.tar.gz nixpkgs-f1a3393769d18b277d31cb673fe4975410d9b23f.tar.bz2 nixpkgs-f1a3393769d18b277d31cb673fe4975410d9b23f.tar.lz nixpkgs-f1a3393769d18b277d31cb673fe4975410d9b23f.tar.xz nixpkgs-f1a3393769d18b277d31cb673fe4975410d9b23f.tar.zst nixpkgs-f1a3393769d18b277d31cb673fe4975410d9b23f.zip |
python3Packages.aiomysql: init at 0.0.20
Diffstat (limited to 'pkgs/development/python-modules/aiomysql')
-rw-r--r-- | pkgs/development/python-modules/aiomysql/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiomysql/default.nix b/pkgs/development/python-modules/aiomysql/default.nix new file mode 100644 index 00000000000..891e9f216ce --- /dev/null +++ b/pkgs/development/python-modules/aiomysql/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pymysql +, pytest +, isPy27 +}: + +buildPythonPackage rec { + pname = "aiomysql"; + version = "0.0.20"; + disabled = isPy27; + + src = fetchFromGitHub { + owner = "aio-libs"; + repo = pname; + rev = "v${version}"; + sha256 = "1mxih81zc2k64briirpp5wz4f72l8v05avfyfibaq9fr6lcbih9b"; + }; + + propagatedBuildInputs = [ + pymysql + ]; + + checkInputs = [ + pytest + ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace "PyMySQL>=0.9,<=0.9.2" "PyMySQL" + ''; + + checkPhase = '' + pytest + ''; + + # tests require mysql database + doCheck = false; + + meta = with lib; { + description = "MySQL driver for asyncio"; + homepage = https://github.com/aio-libs/aiomysql; + license = licenses.mit; + maintainers = [ maintainers.costrouc ]; + }; +} |