Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 48 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytest-asyncio 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "screenlogicpy"; 11 version = "0.6.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "dieselrabbit"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-/ePvq+jFLiIsP1w9YxMl3lbekNRaDhKMjKXoYkCOpn8="; 21 }; 22 23 checkInputs = [ 24 pytest-asyncio 25 pytestCheckHook 26 ]; 27 28 disabledTests = [ 29 # Tests require network access 30 "test_gateway_discovery" 31 "test_async_discovery" 32 "test_gateway" 33 "test_async" 34 "test_asyncio_gateway_discovery" 35 ]; 36 37 pythonImportsCheck = [ 38 "screenlogicpy" 39 ]; 40 41 meta = with lib; { 42 description = "Python interface for Pentair Screenlogic devices"; 43 homepage = "https://github.com/dieselrabbit/screenlogicpy"; 44 changelog = "https://github.com/dieselrabbit/screenlogicpy/releases/tag/v${version}"; 45 license = with licenses; [ gpl3Only ]; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}