| 
									
										
										
										
											2017-08-24 10:55:09 +02:00
										 |  |  |  | { stdenv | 
					
						
							|  |  |  |  | , buildPythonPackage | 
					
						
							|  |  |  |  | , fetchPypi | 
					
						
							|  |  |  |  | , setuptools_scm | 
					
						
							|  |  |  |  | # , backports | 
					
						
							|  |  |  |  | , python | 
					
						
							|  |  |  |  | }: | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | buildPythonPackage rec { | 
					
						
							|  |  |  |  |   pname = "backports.weakref"; | 
					
						
							| 
									
										
										
										
											2017-10-25 20:04:35 +02:00
										 |  |  |  |   version = "1.0.post1"; | 
					
						
							| 
									
										
										
										
											2017-08-24 10:55:09 +02:00
										 |  |  |  |   src = fetchPypi { | 
					
						
							|  |  |  |  |     inherit pname version; | 
					
						
							| 
									
										
										
										
											2017-10-25 20:04:35 +02:00
										 |  |  |  |     sha256 = "bc4170a29915f8b22c9e7c4939701859650f2eb84184aee80da329ac0b9825c2"; | 
					
						
							| 
									
										
										
										
											2017-08-24 10:55:09 +02:00
										 |  |  |  |   }; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   buildInputs = [ setuptools_scm ]; | 
					
						
							|  |  |  |  | #   checkInputs = [ backports ]; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   # Requires backports package | 
					
						
							|  |  |  |  |   doCheck = false; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   checkPhase = ''
 | 
					
						
							|  |  |  |  |     ${python.interpreter} -m unittest discover tests | 
					
						
							|  |  |  |  |   '';
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   meta = with stdenv.lib; { | 
					
						
							|  |  |  |  |     description = "Backports of new features in Python’s weakref module"; | 
					
						
							|  |  |  |  |     license = licenses.psfl; | 
					
						
							| 
									
										
										
										
											2017-09-12 09:59:28 +02:00
										 |  |  |  |     maintainers = with maintainers; [ jyp ]; | 
					
						
							| 
									
										
										
										
											2017-08-24 10:55:09 +02:00
										 |  |  |  |   }; | 
					
						
							|  |  |  |  | } |