gnu: Add python-nose-timer.
* gnu/packages/python.scm (python-nose-time, python2-nose-timer): New variables.
This commit is contained in:
		
							parent
							
								
									9bb7c05e3d
								
							
						
					
					
						commit
						8e6ceb4737
					
				
					 1 changed files with 28 additions and 0 deletions
				
			
		| 
						 | 
					@ -16323,3 +16323,31 @@ ignoring formatting changes.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public python2-pydiff
 | 
					(define-public python2-pydiff
 | 
				
			||||||
  (package-with-python2 python-pydiff))
 | 
					  (package-with-python2 python-pydiff))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(define-public python-nose-timer
 | 
				
			||||||
 | 
					  (package
 | 
				
			||||||
 | 
					    (name "python-nose-timer")
 | 
				
			||||||
 | 
					    (version "0.7.0")
 | 
				
			||||||
 | 
					    (source
 | 
				
			||||||
 | 
					      (origin
 | 
				
			||||||
 | 
					        (method url-fetch)
 | 
				
			||||||
 | 
					        (uri (pypi-uri "nose-timer" version))
 | 
				
			||||||
 | 
					        (patches
 | 
				
			||||||
 | 
					         (search-patches
 | 
				
			||||||
 | 
					          ;; This patch will not be needed in the next version.
 | 
				
			||||||
 | 
					          ;; It is taken from the master branch.
 | 
				
			||||||
 | 
					          "python-nose-timer-drop-ordereddict.patch"))
 | 
				
			||||||
 | 
					        (sha256
 | 
				
			||||||
 | 
					          (base32
 | 
				
			||||||
 | 
					            "1s32ymsnby8lz2qk55ifj9zi50dqcg6swnj5cz2rmwxg2jsslsxp"))))
 | 
				
			||||||
 | 
					    (build-system python-build-system)
 | 
				
			||||||
 | 
					    (propagated-inputs
 | 
				
			||||||
 | 
					     `(("python-nose" ,python-nose)
 | 
				
			||||||
 | 
					       ("python-termcolor" ,python-termcolor)))
 | 
				
			||||||
 | 
					    (home-page "https://github.com/mahmoudimus/nose-timer")
 | 
				
			||||||
 | 
					    (synopsis "Timer plugin for nosetests")
 | 
				
			||||||
 | 
					    (description "Shows how much time was needed to run individual tests.")
 | 
				
			||||||
 | 
					    (license license:expat)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(define-public python2-nose-timer
 | 
				
			||||||
 | 
					  (package-with-python2 python-nose-timer))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue