python310Packages.avion: fix specifier

This commit is contained in:
Fabian Affolter 2023-05-08 20:59:26 +02:00
parent b15daed965
commit 7d8aa99067

View File

@ -4,18 +4,28 @@
, csrmesh
, fetchPypi
, pycryptodome
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "avion";
version = "0.10";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "0zgv45086b97ngyqxdp41wxb7hpn9g7alygc21j9y3dib700vzdz";
hash = "sha256-v/0NwFmxDZ9kEOx5qs5L9sKzOg/kto79syctg0Ah+30=";
};
postPatch = ''
# https://github.com/mjg59/python-avion/pull/16
substituteInPlace setup.py \
--replace "bluepy>==1.1.4" "bluepy>=1.1.4"
'';
propagatedBuildInputs = [
bluepy
csrmesh
@ -23,8 +33,9 @@ buildPythonPackage rec {
requests
];
# Project has no test
# Module has no test
doCheck = false;
# bluepy/uuids.json is not found
# pythonImportsCheck = [ "avion" ];