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