diff --git a/srcpkgs/gns3-server/patches/requirements.patch b/srcpkgs/gns3-server/patches/requirements.patch new file mode 100644 index 00000000000..4954850f1dd --- /dev/null +++ b/srcpkgs/gns3-server/patches/requirements.patch @@ -0,0 +1,15 @@ +diff --git a/requirements.txt b/requirements.txt +--- a/requirements.txt ++++ b/requirements.txt +@@ -1,9 +1,8 @@ + jsonschema==3.2.0 +-aiohttp==3.7.4.post0 ++aiohttp>=3.7.4 + aiohttp-cors==0.7.0 + aiofiles==0.7.0 +-Jinja2==3.0.1 ++Jinja2>=2.0.0<3.0.0 +-sentry-sdk==1.3.1 + psutil==5.8.0 + async-timeout==3.0.1 + distro==1.6.0 diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template index 02ae7b2ef43..6e06a4d0942 100644 --- a/srcpkgs/gns3-server/template +++ b/srcpkgs/gns3-server/template @@ -1,32 +1,19 @@ # Template file for 'gns3-server' pkgname=gns3-server -version=2.2.21 +version=2.2.25 revision=1 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-setuptools python3-jsonschema python3-aiohttp-cors python3-yarl - python3-Jinja2 python3-sentry python3-psutil python3-aiofiles + python3-Jinja2 python3-psutil python3-aiofiles python3-py-cpuinfo python3-distro python3-async-timeout dynamips" -checkdepends="${depends}" +checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp" short_desc="Graphical Network Simulator 3 - Server" maintainer="Tim Sandquist " license="GPL-3.0-or-later" homepage="https://gns3.com" distfiles="https://github.com/GNS3/gns3-server/archive/v${version}.tar.gz" -checksum=@9f3d7f4caf6cd420049a62ae9d7579f29b0e3805f1a50913ae9111ab6752bdb0 -make_check=no - -post_patch() { - # relax requirements - vsed -e 's|aiofiles.*|aiofiles>=0.4.0|' \ - -e 's|aiohttp=.*|aiohttp>=3.7.4|' \ - -e 's|jsonschema.*|jsonschema>=2.6.0|' \ - -e 's|py-cpuinfo.*|py-cpuinfo>=5.8.0|' -i requirements.txt -} -post_install() { - # remove tests directory polluting site-packages - rm -rf -- ${DESTDIR}/usr/lib/python*/site-packages/tests -} +checksum=43faa7d57126e813dae3bf702c11e520148d9c3c234e4f1a7c23872e931c6251 # The source archive contains statically linked artifacts for x86_64 # glibc, since this is the only architecture supported by upstream, we