Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eva-sub-cli recipe #45929

Merged
merged 8 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions recipes/eva-sub-cli/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

BIOVALIDATOR_VERSION=2.2.1

EVA_SUB_CLI="${PREFIX}/share/${PKG_NAME}-${PKG_VERSION}"
mkdir -p ${PREFIX}/bin ${EVA_SUB_CLI}

# Install eva-sub-cli
$PYTHON -m pip install .
cp bin/* ${PREFIX}/bin
echo "Done with eva-sub-cli"

cd ${EVA_SUB_CLI}

# Install biovalidator from source
curl -Lo biovalidator.zip https://github.com/elixir-europe/biovalidator/archive/refs/tags/v${BIOVALIDATOR_VERSION}.zip \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we then wait for a new release?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can wait for a new tagged release. I've also requested a conda recipe from the maintainers, in case that's something they're willing to do.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to use newest version

&& unzip -q biovalidator.zip && rm biovalidator.zip \
&& cd biovalidator-${BIOVALIDATOR_VERSION} \
&& npm install && npm install -g \
&& cd ..
echo "Done with biovalidator"
60 changes: 60 additions & 0 deletions recipes/eva-sub-cli/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{% set name = "eva-sub-cli" %}
{% set version = "0.2" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/EBIvariation/eva-sub-cli/archive/v{{version}}.tar.gz
sha256: c997f72a93f13f03485274bf5f0468bfc9d5ed3082a9b81742eb21133aa35bff

build:
number: 0
noarch: generic
run_exports:
- {{ pin_subpackage(name, max_pin="x.x") }}

requirements:
host:
- nextflow >=21.10.0
- python >=3.8
- nodejs >=10.19.1
- vcf-validator >=0.9.6
- ebi-eva-common-pyutils >=0.6.1
- pyyaml
- jinja2
- openpyxl
- requests
- jsonschema
- unzip
run:
- nextflow >=21.10.0
- python >=3.8
- nodejs >=10.19.1
- vcf-validator >=0.9.6
- ebi-eva-common-pyutils >=0.6.1
- pyyaml
- jinja2
- openpyxl
- requests
- jsonschema

test:
imports:
- eva_sub_cli
commands:
- biovalidator --help
- eva-sub-cli.py --help

about:
home: https://github.com/EBIvariation/eva-sub-cli
summary: EVA Submission Command Line Interface
license: Apache-2.0
license_file: LICENSE

extra:
recipe-maintainers:
- apriltuesday
- tcezard
- ebi-variation