Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 43 lines 878 B view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 libmysqlclient, 5 lib, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "mariadb"; 12 version = "1.1.10"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "mariadb-corporation"; 19 repo = "mariadb-connector-python"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-YpA65J8ozKJfpOc4hZLdgCcT3j/lqRiNeX7k8U/aYkE="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeBuildInputs = [ 27 libmysqlclient # for mariadb_config 28 ]; 29 30 buildInputs = [ libmysqlclient ]; 31 32 # Requires a running MariaDB instance 33 doCheck = false; 34 35 pythonImportsCheck = [ "mariadb" ]; 36 37 meta = { 38 description = "MariaDB Connector/Python"; 39 homepage = "https://github.com/mariadb-corporation/mariadb-connector-python"; 40 license = lib.licenses.lgpl21Plus; 41 maintainers = [ ]; 42 }; 43}