| 
									
										
										
										
											2018-03-20 22:25:02 +01:00
										 |  |  | { lib, fetchPypi, buildPythonPackage | 
					
						
							|  |  |  | # buildInputs | 
					
						
							|  |  |  | , six | 
					
						
							|  |  |  | , setuptools | 
					
						
							|  |  |  | , pyopenssl | 
					
						
							|  |  |  | , cryptography | 
					
						
							| 
									
										
										
										
											2021-02-12 01:26:16 +01:00
										 |  |  | , mock | 
					
						
							|  |  |  | , pytestCheckHook | 
					
						
							| 
									
										
										
										
											2018-03-20 22:25:02 +01:00
										 |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | buildPythonPackage rec { | 
					
						
							|  |  |  |   pname = "josepy"; | 
					
						
							| 
									
										
										
										
											2021-02-13 21:42:00 +00:00
										 |  |  |   version = "1.7.0"; | 
					
						
							| 
									
										
										
										
											2018-03-20 22:25:02 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   src = fetchPypi { | 
					
						
							|  |  |  |     inherit pname version; | 
					
						
							| 
									
										
										
										
											2021-02-13 21:42:00 +00:00
										 |  |  |     sha256 = "d265414fa16d7a8b7a1d1833b4ebb19a22bd0deae5d44413cf9040fd8491d85a"; | 
					
						
							| 
									
										
										
										
											2018-03-20 22:25:02 +01:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-12 01:26:16 +01:00
										 |  |  |   postPatch = ''
 | 
					
						
							|  |  |  |     # remove coverage flags | 
					
						
							|  |  |  |     sed -i '/addopts/d' pytest.ini | 
					
						
							|  |  |  |   '';
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 22:25:02 +01:00
										 |  |  |   propagatedBuildInputs = [ | 
					
						
							|  |  |  |     pyopenssl | 
					
						
							|  |  |  |     cryptography | 
					
						
							|  |  |  |     six | 
					
						
							|  |  |  |     setuptools | 
					
						
							|  |  |  |   ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-12 01:26:16 +01:00
										 |  |  |   checkInputs = [ | 
					
						
							|  |  |  |     mock | 
					
						
							|  |  |  |     pytestCheckHook | 
					
						
							|  |  |  |   ]; | 
					
						
							| 
									
										
										
										
											2018-03-20 22:25:02 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   meta = with lib; { | 
					
						
							|  |  |  |     description = "JOSE protocol implementation in Python"; | 
					
						
							| 
									
										
										
										
											2020-03-31 21:11:51 -04:00
										 |  |  |     homepage = "https://github.com/jezdez/josepy"; | 
					
						
							| 
									
										
										
										
											2018-03-20 22:25:02 +01:00
										 |  |  |     license = licenses.asl20; | 
					
						
							|  |  |  |     maintainers = with maintainers; [  ]; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 |