| 
									
										
										
										
											2018-02-21 18:49:10 +01:00
										 |  |  | { lib, buildPythonPackage, fetchFromGitHub | 
					
						
							|  |  |  | , protobuf | 
					
						
							|  |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | buildPythonPackage rec { | 
					
						
							|  |  |  |   pname = "mysql-connector"; | 
					
						
							| 
									
										
										
										
											2018-10-26 08:23:20 -07:00
										 |  |  |   version = "8.0.13"; | 
					
						
							| 
									
										
										
										
											2018-02-21 18:49:10 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   src = fetchFromGitHub { | 
					
						
							|  |  |  |     owner = "mysql"; | 
					
						
							|  |  |  |     repo = "mysql-connector-python"; | 
					
						
							|  |  |  |     rev = version; | 
					
						
							| 
									
										
										
										
											2018-10-26 08:23:20 -07:00
										 |  |  |     sha256 = "1qb6m3cp6zxmr49bp6g5g5b75yszgac1h26i2hza61mrvd235688"; | 
					
						
							| 
									
										
										
										
											2018-02-21 18:49:10 +01:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   propagatedBuildInputs = [ protobuf ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-19 22:42:45 +02:00
										 |  |  |   # Tests are failing (TODO: unknown reason) | 
					
						
							|  |  |  |   # TypeError: __init__() missing 1 required positional argument: 'string' | 
					
						
							|  |  |  |   # But the library should be working as expected. | 
					
						
							| 
									
										
										
										
											2018-02-21 18:49:10 +01:00
										 |  |  |   doCheck = false; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   meta = { | 
					
						
							|  |  |  |     description = "A MySQL driver"; | 
					
						
							|  |  |  |     longDescription = ''
 | 
					
						
							|  |  |  |       A MySQL driver that does not depend on MySQL C client libraries and | 
					
						
							|  |  |  |       implements the DB API v2.0 specification. | 
					
						
							|  |  |  |     '';
 | 
					
						
							|  |  |  |     homepage = https://github.com/mysql/mysql-connector-python; | 
					
						
							|  |  |  |     license = [ lib.licenses.gpl2 ]; | 
					
						
							|  |  |  |     maintainers = with lib.maintainers; [ primeos ]; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } |