Skip to content

Commit

Permalink
Update resfinder to 4.4.2 (bioconda#45579)
Browse files Browse the repository at this point in the history
  • Loading branch information
mencian committed Feb 2, 2024
1 parent 88b9425 commit 46a8fda
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 269 deletions.
202 changes: 0 additions & 202 deletions recipes/resfinder/LICENSE-2.0.txt

This file was deleted.

6 changes: 1 addition & 5 deletions recipes/resfinder/build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/bash

mkdir -p ${PREFIX}/bin

cp *.py ${PREFIX}/bin
chmod +x ${PREFIX}/bin/*.py
cp -r cge/ ${PREFIX}/bin/
${PYTHON} -m pip install . -vvv --no-deps --no-build-isolation

# create folder for database download
target=${PREFIX}/share/${PKG_NAME}-${PKG_VERSION}
Expand Down
50 changes: 27 additions & 23 deletions recipes/resfinder/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,47 +1,51 @@
{% set name = "ResFinder" %}
{% set version = "4.1.11" %}
{% set sha256 = "e312ff8dc23f329baf8b0a4dc3c41f0006778772e8f736086cf12d03bc76c9c8" %}
{% set name = "resfinder" %}
{% set version = "4.4.2" %}

package:
name: '{{ name|lower }}'
version: '{{ version }}'
name: {{ name|lower }}
version: {{ version }}

source:
url: https://bitbucket.org/genomicepidemiology/{{ name|lower }}/get/{{ version }}.tar.gz
sha256: '{{ sha256 }}'
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/resfinder-{{ version }}.tar.gz
sha256: 9660e58c3b3f63cf08335c0058f7ef3c56320be852009b714e773c71e8ea2659
patches:
- python_path.patch
- remove_version_git_tag.patch

build:
number: 0
noarch: generic
noarch: python
run_exports:
- {{ pin_subpackage('resfinder', max_pin="x") }}

requirements:
host:
- git
- kma
- python >=3.8
- pip
- pdm-pep517 >=0.12.0
run:
- python >=3
- python >=3.8
# Needs cgelib in conda-forge/bioconda
- cgelib >=0.7.3
- cgecore ==1.5.6
- tabulate >=0.8.9
- pandas >=1.4.2
- biopython >=1.79
- python-dateutil
- kma
- biopython
- blast >=2.8.1
- cgecore 1.5.5
- tabulate 0.7.7
- gitpython
- python-dateutil
- git

test:
commands:
- run_resfinder.py --help
imports:
- resfinder

about:
home: https://bitbucket.org/genomicepidemiology/resfinder
license: APACHE-2.0
summary: "ResFinder identifies acquired antimicrobial resistance genes in total or partial sequenced isolates of bacteria."
license: Apache-2.0
license_family: APACHE
license_file: LICENSE-2.0.txt
summary: ResFinder identifies acquired antimicrobial resistance genes in total or partial sequenced isolates of bacteria.
license_file: LICENSE

extra:
notes: "ResFinder requires databases that can be downloaded with download-db.sh."
identifiers:
- doi:10.1093/jac/dkaa345
6 changes: 3 additions & 3 deletions recipes/resfinder/python_path.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--- run_resfinder.py.old 2022-03-24 02:00:31.990686268 -0500
+++ run_resfinder.py 2022-03-24 02:01:00.924797159 -0500
--- a/src/resfinder/run_resfinder.py
+++ b/src/resfinder/run_resfinder.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/opt/anaconda1anaconda2anaconda3/bin/python
import io
import sys
import os
import re
36 changes: 0 additions & 36 deletions recipes/resfinder/remove_version_git_tag.patch

This file was deleted.

0 comments on commit 46a8fda

Please sign in to comment.