Skip to content

Commit

Permalink
Add pydustmasker (#51118)
Browse files Browse the repository at this point in the history
  • Loading branch information
apcamargo authored Oct 3, 2024
1 parent 0292cdf commit 9e26ba1
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
17 changes: 17 additions & 0 deletions recipes/pydustmasker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -ex

if [ `uname` == Darwin ]; then
export HOME=`mktemp -d`
fi

curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly --profile=minimal -y

export PATH="$HOME/.cargo/bin:$PATH"

export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER="$CC"

maturin build --interpreter python --release

$PYTHON -m pip install target/wheels/*.whl --no-deps --ignore-installed -vv
37 changes: 37 additions & 0 deletions recipes/pydustmasker/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% set name = "pydustmasker" %}
{% set version = "1.0.0" %}

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

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 03f875b3cdb595394eabed823d80d4da50d687f3ade4a017ff0159ce277ae331

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

requirements:
build:
- {{ compiler('c') }}
host:
- pip
- maturin
- python
run:
- python

test:
imports:
- pydustmasker

about:
home: https://github.com/apcamargo/pydustmasker
license: MIT
license_family: MIT
license_file: LICENSE
summary: "Python library for identification and masking of low-complexity regions in nucleotide sequences."

0 comments on commit 9e26ba1

Please sign in to comment.