gnu: python-rauth: Rearrange inputs.
* gnu/packages/python.scm (python-rauth)[native-inputs]: Remove it. [propagated-inputs]: Move python-requests ... [inputs]: ... to here. [properties]: Define python2-variant. (python2-rauth): Build with 'strip-python2-variant'. [native-inputs]: Add python2-setuptools.
This commit is contained in:
		
							parent
							
								
									f28cb89e48
								
							
						
					
					
						commit
						0848d8d3a6
					
				
					 1 changed files with 9 additions and 10 deletions
				
			
		| 
						 | 
					@ -7212,9 +7212,7 @@ Python at your fingertips, in Lisp form.")
 | 
				
			||||||
    (build-system python-build-system)
 | 
					    (build-system python-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:test-target "check"))
 | 
					     `(#:test-target "check"))
 | 
				
			||||||
    (native-inputs
 | 
					    (inputs
 | 
				
			||||||
     `(("python-setuptools" ,python-setuptools)))
 | 
					 | 
				
			||||||
    (propagated-inputs
 | 
					 | 
				
			||||||
     `(("python-requests" ,python-requests)))
 | 
					     `(("python-requests" ,python-requests)))
 | 
				
			||||||
    (home-page "https://github.com/litl/rauth")
 | 
					    (home-page "https://github.com/litl/rauth")
 | 
				
			||||||
    (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
 | 
					    (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
 | 
				
			||||||
| 
						 | 
					@ -7222,15 +7220,16 @@ Python at your fingertips, in Lisp form.")
 | 
				
			||||||
     "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly.  It also
 | 
					     "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly.  It also
 | 
				
			||||||
provides service wrappers for convenient connection initialization and
 | 
					provides service wrappers for convenient connection initialization and
 | 
				
			||||||
authenticated session objects providing things like keep-alive.")
 | 
					authenticated session objects providing things like keep-alive.")
 | 
				
			||||||
    (license license:expat)))
 | 
					    (license license:expat)
 | 
				
			||||||
 | 
					    (properties `((python2-variant . ,(delay python2-rauth))))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public python2-rauth
 | 
					(define-public python2-rauth
 | 
				
			||||||
  (let ((rauth (package-with-python2 python-rauth)))
 | 
					  (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
 | 
				
			||||||
    (package (inherit rauth)
 | 
					    (package
 | 
				
			||||||
      (propagated-inputs `(("python2-requests" ,python2-requests)))
 | 
					      (inherit base)
 | 
				
			||||||
      (native-inputs
 | 
					      (native-inputs `(("python2-setuptools" ,python2-setuptools)
 | 
				
			||||||
       `(("python2-unittest2" ,python2-unittest2)
 | 
					                       ("python2-unittest2" ,python2-unittest2)
 | 
				
			||||||
         ,@(package-native-inputs rauth))))))
 | 
					                       ,@(package-native-inputs base))))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public python2-functools32
 | 
					(define-public python2-functools32
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue