nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, cython
4, fetchFromGitHub
5, poetry-core
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "asyncmy";
11 version = "0.2.5";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "long2ice";
18 repo = pname;
19 rev = "v${version}";
20 sha256 = "sha256-yLAse8p+2RYHJmDwD5vrHlf29URB+kdupjD1DwTcRAc=";
21 };
22
23 nativeBuildInputs = [
24 cython
25 poetry-core
26 ];
27
28 # Not running tests as aiomysql is missing support for
29 # pymysql>=0.9.3
30 doCheck = false;
31
32 pythonImportsCheck = [
33 "asyncmy"
34 ];
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}