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

New recipe sparc-x-api #24093

Merged
merged 14 commits into from
Oct 16, 2023
57 changes: 57 additions & 0 deletions recipes/sparc-x-api/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{% set name = "SPARC-X-API" %}
{% set version = "1.0.1" %}


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

source:
url: https://github.com/SPARC-X/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
sha256: dca059a2bc4a020050ce8983b247176471eeb76e4a4dd96708133e0fcad18e19

build:
noarch: python
number: 0
# Install and include the psp files
script: "{{ PYTHON }} -m pip install . --no-deps -vv && cd .. && {{ PYTHON }} -m sparc.download_data"
entry_points:
- "sparc-ase = sparc.cli:main"

requirements:
host:
- python >=3.8
- pip
run:
- python >=3.8
- ase >=3.22

test:
imports:
- sparc
- sparc.io
requires:
- pip
commands:
- pip check
- python -m sparc.quicktest
- python -c "from sparc.quicktest import psp_test; assert psp_test()"
- sparc-ase help

about:
home: https://github.com/SPARC-X/SPARC-X-API
license: GPL-3.0-or-later
license_family: GPL
license_file: LICENSE
summary: "SPARC-X-API: A Python API for the SPARC-X DFT Code"
description: |
`SPARC-X-API` is an [ASE](https://wiki.fysik.dtu.dk/ase/)-compatible Python API for the density functional theory (DFT) code [SPARC](https://github.com/SPARC-X/SPARC). It offers:
1. ASE-compatible I/O format for SPARC files
2. A JSON API interfacing with SPARC's C-code for parameter validation and conversion
3. A comprehensive calculator interface for SPARC.
doc_url: https://github.com/SPARC-X/SPARC-X-API/blob/master/README.md
dev_url: https://github.com/SPARC-X/SPARC-X-API

extra:
recipe-maintainers:
- alchem0x2a