depot/third_party/nixpkgs/pkgs/development/python-modules/asyncmy/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

42 lines
799 B
Nix

{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "asyncmy";
version = "0.2.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "long2ice";
repo = pname;
rev = "v${version}";
sha256 = "sha256-nuk8Zh82qN60FrH6Jjv7RDDDQsfZ5EmbaQe5EAcB2Tk=";
};
nativeBuildInputs = [
cython
poetry-core
];
# Not running tests as aiomysql is missing support for
# pymysql>=0.9.3
doCheck = false;
pythonImportsCheck = [
"asyncmy"
];
meta = with lib; {
description = "Python module to interact with MySQL/mariaDB";
homepage = "https://github.com/long2ice/asyncmy";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}