| 
									
										
										
										
											2017-07-11 09:44:39 +02:00
										 |  |  | { stdenv, buildPythonPackage, fetchPypi, | 
					
						
							|  |  |  |   rcssmin, rjsmin, django_appconf }: | 
					
						
							|  |  |  | buildPythonPackage rec { | 
					
						
							|  |  |  |     pname = "django_compressor"; | 
					
						
							| 
									
										
										
										
											2019-08-05 03:40:48 -07:00
										 |  |  |     version = "2.3"; | 
					
						
							| 
									
										
										
										
											2017-07-11 09:44:39 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     src = fetchPypi { | 
					
						
							|  |  |  |       inherit pname version; | 
					
						
							| 
									
										
										
										
											2019-08-05 03:40:48 -07:00
										 |  |  |       sha256 = "1pbygd00l0k5p1r959131khij1km1a1grfxg0r59ar2wyx3n7j27"; | 
					
						
							| 
									
										
										
										
											2017-07-11 09:44:39 +02:00
										 |  |  |     }; | 
					
						
							| 
									
										
										
										
											2019-06-16 15:43:17 +01:00
										 |  |  |     postPatch = ''
 | 
					
						
							|  |  |  |       substituteInPlace setup.py --replace 'rcssmin == 1.0.6' 'rcssmin' \ | 
					
						
							|  |  |  |         --replace 'rjsmin == 1.0.12' 'rjsmin' | 
					
						
							|  |  |  |     '';
 | 
					
						
							| 
									
										
										
										
											2017-07-11 09:44:39 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-16 15:43:17 +01:00
										 |  |  |     # requires django-sekizai, which we don't have packaged yet | 
					
						
							| 
									
										
										
										
											2017-07-11 09:44:39 +02:00
										 |  |  |     doCheck = false; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     propagatedBuildInputs = [ rcssmin rjsmin django_appconf ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     meta = with stdenv.lib; { | 
					
						
							|  |  |  |       description = "Compresses linked and inline JavaScript or CSS into single cached files"; | 
					
						
							| 
									
										
										
										
											2019-04-22 10:24:21 +02:00
										 |  |  |       homepage = https://django-compressor.readthedocs.org/en/latest/; | 
					
						
							| 
									
										
										
										
											2017-07-11 09:44:39 +02:00
										 |  |  |       license = licenses.mit; | 
					
						
							|  |  |  |       maintainers = with maintainers; [ desiderius ]; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  | } |