| 
									
										
										
										
											2019-06-12 10:18:47 +10:00
										 |  |  | { lib | 
					
						
							|  |  |  | , buildPythonPackage | 
					
						
							|  |  |  | , fetchPypi | 
					
						
							|  |  |  | , coverage | 
					
						
							|  |  |  | , pytest | 
					
						
							|  |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | buildPythonPackage rec { | 
					
						
							|  |  |  |   pname = "pytest-testmon"; | 
					
						
							| 
									
										
										
										
											2019-12-19 20:31:20 +01:00
										 |  |  |   version = "1.0.1"; | 
					
						
							| 
									
										
										
										
											2019-06-12 10:18:47 +10:00
										 |  |  | 
 | 
					
						
							|  |  |  |   src = fetchPypi { | 
					
						
							|  |  |  |     inherit pname version; | 
					
						
							| 
									
										
										
										
											2019-12-19 20:31:20 +01:00
										 |  |  |     sha256 = "b823b03faf5778d1e15fb9f52e104df4da9c1021daeb313b339fccbbfb8dbd5f"; | 
					
						
							| 
									
										
										
										
											2019-06-12 10:18:47 +10:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   propagatedBuildInputs = [ coverage ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   checkInputs = [ pytest ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-21 14:34:51 -08:00
										 |  |  |   # avoid tests which try to import unittest_mixins | 
					
						
							|  |  |  |   # unittest_mixins doesn't seem to be very active | 
					
						
							| 
									
										
										
										
											2019-06-12 10:18:47 +10:00
										 |  |  |   checkPhase = ''
 | 
					
						
							| 
									
										
										
										
											2019-12-21 14:34:51 -08:00
										 |  |  |     cd test | 
					
						
							|  |  |  |     pytest test_{core,process_code,pytest_assumptions}.py | 
					
						
							| 
									
										
										
										
											2019-06-12 10:18:47 +10:00
										 |  |  |   '';
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   meta = with lib; { | 
					
						
							|  |  |  |     homepage = "https://github.com/tarpas/pytest-testmon/"; | 
					
						
							|  |  |  |     description = "This is a py.test plug-in which automatically selects and re-executes only tests affected by recent changes"; | 
					
						
							|  |  |  |     license = licenses.mit; | 
					
						
							|  |  |  |     maintainers = [ maintainers.dmvianna ]; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 |