gnu: taxtastic: Update to 0.8.11.
* gnu/packages/bioinformatics.scm (taxtastic): Update to 0.8.11. [source]: Fetch from Github. [arguments]: Build with default Python; add phases 'prepare-directory, 'python37-compatibility, and update 'check phase. [propagated-inputs]: Replace Python 2 variants with Python 3 variants.
This commit is contained in:
		
							parent
							
								
									d6d0e10b3d
								
							
						
					
					
						commit
						46a864e7c1
					
				
					 1 changed files with 42 additions and 17 deletions
				
			
		|  | @ -6536,31 +6536,56 @@ Cuffdiff or Ballgown programs.") | ||||||
| (define-public taxtastic | (define-public taxtastic | ||||||
|   (package |   (package | ||||||
|     (name "taxtastic") |     (name "taxtastic") | ||||||
|     (version "0.8.5") |     (version "0.8.11") | ||||||
|     (source (origin |     (source (origin | ||||||
|               (method url-fetch) |               ;; The Pypi version does not include tests. | ||||||
|               (uri (pypi-uri "taxtastic" version)) |               (method git-fetch) | ||||||
|  |               (uri (git-reference | ||||||
|  |                     (url "https://github.com/fhcrc/taxtastic.git") | ||||||
|  |                     (commit (string-append "v" version)))) | ||||||
|  |               (file-name (git-file-name name version)) | ||||||
|               (sha256 |               (sha256 | ||||||
|                (base32 |                (base32 | ||||||
|                 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk")))) |                 "1sv8mkg64jn7zdwf1jj71c16686yrwxk0apb1l8sjszy9p166g0p")))) | ||||||
|     (build-system python-build-system) |     (build-system python-build-system) | ||||||
|     (arguments |     (arguments | ||||||
|      `(#:python ,python-2 |      `(#:phases | ||||||
|        #:phases |  | ||||||
|        (modify-phases %standard-phases |        (modify-phases %standard-phases | ||||||
|  |          (add-after 'unpack 'prepare-directory | ||||||
|  |            (lambda _ | ||||||
|  |              ;; The git checkout must be writable for tests. | ||||||
|  |              (for-each make-file-writable (find-files ".")) | ||||||
|  |              ;; This test fails, but the error is not caught by the test | ||||||
|  |              ;; framework, so the tests fail... | ||||||
|  |              (substitute* "tests/test_taxit.py" | ||||||
|  |                (("self.cmd_fails\\(''\\)") | ||||||
|  |                 "self.cmd_fails('nothing')")) | ||||||
|  |              ;; This version file is expected to be created with git describe. | ||||||
|  |              (mkdir-p "taxtastic/data") | ||||||
|  |              (with-output-to-file "taxtastic/data/ver" | ||||||
|  |                (lambda () (display ,version))) | ||||||
|  |              #t)) | ||||||
|  |          (add-after 'unpack 'python37-compatibility | ||||||
|  |            (lambda _ | ||||||
|  |              (substitute* "taxtastic/utils.py" | ||||||
|  |                (("import csv") "import csv, errno") | ||||||
|  |                (("os.errno") "errno")) | ||||||
|  |              #t)) | ||||||
|          (replace 'check |          (replace 'check | ||||||
|            (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))))) |            ;; Note, this fails to run with "-v" as it tries to write to a | ||||||
|  |            ;; closed output stream. | ||||||
|  |            (lambda _ (invoke "python" "-m" "unittest") #t))))) | ||||||
|     (propagated-inputs |     (propagated-inputs | ||||||
|      `(("python-sqlalchemy" ,python2-sqlalchemy) |      `(("python-sqlalchemy" ,python-sqlalchemy) | ||||||
|        ("python-decorator" ,python2-decorator) |        ("python-decorator" ,python-decorator) | ||||||
|        ("python-biopython" ,python2-biopython) |        ("python-biopython" ,python-biopython) | ||||||
|        ("python-pandas" ,python2-pandas) |        ("python-pandas" ,python-pandas) | ||||||
|        ("python-psycopg2" ,python2-psycopg2) |        ("python-psycopg2" ,python-psycopg2) | ||||||
|        ("python-fastalite" ,python2-fastalite) |        ("python-fastalite" ,python-fastalite) | ||||||
|        ("python-pyyaml" ,python2-pyyaml) |        ("python-pyyaml" ,python-pyyaml) | ||||||
|        ("python-six" ,python2-six) |        ("python-six" ,python-six) | ||||||
|        ("python-jinja2" ,python2-jinja2) |        ("python-jinja2" ,python-jinja2) | ||||||
|        ("python-dendropy" ,python2-dendropy))) |        ("python-dendropy" ,python-dendropy))) | ||||||
|     (home-page "https://github.com/fhcrc/taxtastic") |     (home-page "https://github.com/fhcrc/taxtastic") | ||||||
|     (synopsis "Tools for taxonomic naming and annotation") |     (synopsis "Tools for taxonomic naming and annotation") | ||||||
|     (description |     (description | ||||||
|  |  | ||||||
		Reference in a new issue