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.12.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-71iFZS5CLYXNw57psLXswNJKfvbeKOqSncLoSsNXqjc="; 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 = with lib; { 37 description = "A Sans-I/O Python client library for Brultech Devices"; 38 homepage = "https://github.com/sdwilsh/siobrultech-protocols"; 39 changelog = "https://github.com/sdwilsh/siobrultech-protocols/releases/tag/v${version}"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ dotlambda ]; 42 }; 43}