Install this version:
emerge -a =dev-python/neurondm-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/neurondm-9999
Or alternatively:
emerge --autounmask-write -a =dev-python/neurondm-9999
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..14} )
inherit distutils-r1
if [[ ${PV} == "9999" ]]; then
SRC_URI="
https://raw.githubusercontent.com/SciCrunch/NIF-Ontology/8b28dbf95db7bbb442443771fb6ad7b92e404c86/ttl/phenotype-core.ttl
https://raw.githubusercontent.com/SciCrunch/NIF-Ontology/ec7ad867a4aa529b3f24d10012dfaa5ce9a15620/ttl/phenotype-indicators.ttl
https://raw.githubusercontent.com/SciCrunch/NIF-Ontology/9c86b26ac3fdcd8cf063e979c95e27417e3ec355/ttl/phenotypes.ttl
https://raw.githubusercontent.com/SciCrunch/NIF-Ontology/47a4829d0803f8070617e6be6677bc3a7314b94a/ttl/generated/part-of-self.ttl
"
EGIT_REPO_URI="https://github.com/tgbugs/pyontutils.git"
inherit git-r3
KEYWORDS=""
else
inherit pypi
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="A data model for neuron types."
HOMEPAGE="https://github.com/tgbugs/pyontutils/tree/master/neurondm"
LICENSE="MIT"
SLOT="0"
IUSE="dev models notebook test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/hyputils-0.0.9[${PYTHON_USEDEP}]
>=dev-python/pyontutils-0.1.33[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
dev? (
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
)
models? (
>=dev-python/nifstd-tools-0.0.6[${PYTHON_USEDEP}]
)
notebook? (
dev-python/jupyter[${PYTHON_USEDEP}]
)
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
if [[ ${PV} == "9999" ]]; then
S="${S}/${PN}"
src_prepare () {
mkdir resources || die
cp ${DISTDIR}/*.ttl resources || die
# replace package version to keep python quiet
sed -i "s/__version__.\+$/__version__ = '9999.0.0+$(git rev-parse --short HEAD)'/" ${PN}/__init__.py
default
}
fi
python_install_all() {
local DOCS=( README* docs/* )
distutils-r1_python_install_all
}
python_test() {
if [[ ${PV} == "9999" ]]; then
git remote add origin ${EGIT_REPO_URI}
git checkout -B testing
fi
esetup.py install_data
PYTHONWARNINGS=ignore epytest -v --color=yes || die "Tests fail with ${EPYTHON}"
}
Manage flags for this package:
euse -i <flag> -p dev-python/neurondm |
euse -E <flag> -p dev-python/neurondm |
euse -D <flag> -p dev-python/neurondm
>=dev-python/hyputils-0.0.9[] >=dev-python/pyontutils-0.1.33[] dev-python/setuptools[] dev? ( dev-python/pytest-cov[] dev-python/wheel[] ) models? ( >=dev-python/nifstd-tools-0.0.6[] ) notebook? ( dev-python/jupyter[] ) test? ( dev-python/pytest[] )