sci-biology/bids-schemacode: experimental package
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
parent
73857e7a84
commit
ae712de08a
@ -0,0 +1,36 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1 git-r3
|
||||
|
||||
DESCRIPTION="A Python library for working with the BIDS schema"
|
||||
HOMEPAGE="https://github.com/bids-standard/bids-specification"
|
||||
EGIT_REPO_URI="https://github.com/bids-standard/bids-specification.git"
|
||||
EGIT_COMMIT="3537e9edbc81545614d3ee605c398361099b6977"
|
||||
|
||||
LICENSE="CC-BY-SA-4.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="dev-python/tabulate"
|
||||
DEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}/${P}-nonetwork.patch"
|
||||
cp -rfL tools/schemacode ..
|
||||
rm * -rf
|
||||
mv ../schemacode/* .
|
||||
default
|
||||
}
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
export SCHEMACODE_TESTS_NONETWORK=1
|
||||
epytest
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
--- a/tools/schemacode/schemacode/tests/test_validator.py
|
||||
+++ b/tools/schemacode/schemacode/tests/test_validator.py
|
||||
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
+import pytest
|
||||
|
||||
|
||||
def test__add_entity():
|
||||
@@ -295,6 +296,10 @@ def test_write_report(tmp_path):
|
||||
assert report_text == expected_report_text
|
||||
|
||||
|
||||
+@pytest.mark.skipif(
|
||||
+ os.environ.get("SCHEMACODE_TESTS_NONETWORK") is not None,
|
||||
+ reason="no network",
|
||||
+)
|
||||
def test_bids_datasets(bids_examples, tmp_path):
|
||||
from schemacode.validator import validate_bids
|
||||
|
12
sci-biology/bids-schemacode/metadata.xml
Normal file
12
sci-biology/bids-schemacode/metadata.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>chr@chymera.eu</email>
|
||||
<name>Horea Christian</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>sci@gentoo.org</email>
|
||||
<name>Gentoo Science Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user