package:
  name: artiq-pipistrello-nist_qc1
  version: {{ environ.get("GIT_DESCRIBE_TAG", "") }}

source:
  path: ../..

build:
  noarch_python: true
  number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
  string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}

requirements:
  build:
    # We don't get meaningful GIT_DESCRIBE_* values until before conda installs build dependencies.
    - artiq 0.0
    - migen 0.2
    - misoc 0.1
    - llvm-or1k
    - binutils-or1k-linux
  run:
    - artiq {{ "{tag} py_{number}+git{hash}".format(tag=environ.get("GIT_DESCRIBE_TAG"), number=environ.get("GIT_DESCRIBE_NUMBER"), hash=environ.get("GIT_DESCRIBE_HASH")[1:]) if "GIT_DESCRIBE_TAG" in environ else "" }}

about:
  home: http://m-labs.hk/artiq
  license: GPL
  summary: 'Bitstream, BIOS and runtime for NIST_QC1 on the Pipistrello board'