1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pyaes, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "crownstone-core"; 12 version = "3.2.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "crownstone"; 19 repo = "crownstone-lib-python-core"; 20 rev = version; 21 hash = "sha256-zrlCzx7N3aUcTUNa64jSzDdWgQneX+Hc5n8TTTcZ4ck="; 22 }; 23 24 propagatedBuildInputs = [ pyaes ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "crownstone_core" ]; 29 30 meta = with lib; { 31 description = "Python module with shared classes, util functions and definition of Crownstone"; 32 homepage = "https://github.com/crownstone/crownstone-lib-python-core"; 33 license = with licenses; [ mit ]; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}