Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pytest-asyncio 6, pytestCheckHook 7, pyyaml 8}: 9 10buildPythonPackage rec { 11 pname = "siobrultech-protocols"; 12 version = "0.9.0"; 13 14 disabled = pythonOlder "3.8"; 15 16 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "sdwilsh"; 20 repo = "siobrultech-protocols"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-8qhg7PX4u4vN2+hWXzFjC1ZzgCEhkSr9Fn58Lc4E76c="; 23 }; 24 25 nativeCheckInputs = [ 26 pytest-asyncio 27 pytestCheckHook 28 pyyaml 29 ]; 30 31 pythonImportsCheck = [ 32 "siobrultech_protocols.gem.api" 33 "siobrultech_protocols.gem.protocol" 34 ]; 35 36 meta = { 37 description = "A Sans-I/O Python client library for Brultech Devices"; 38 homepage = "https://github.com/sdwilsh/siobrultech-protocols"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ dotlambda ]; 41 }; 42}