Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 825 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "screenlogicpy"; 10 version = "0.4.1"; 11 disabled = pythonOlder "3.6"; 12 13 src = fetchFromGitHub { 14 owner = "dieselrabbit"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "1rmjxqqbkfcv2xz8ilml799bzffls678fvq784fab2xdv595fndd"; 18 }; 19 20 checkInputs = [ 21 pytestCheckHook 22 ]; 23 24 disabledTests = [ 25 # Tests require network access 26 "test_gateway_discovery" 27 "test_asyncio_gateway_discovery" 28 ]; 29 30 pythonImportsCheck = [ "screenlogicpy" ]; 31 32 meta = with lib; { 33 description = "Python interface for Pentair Screenlogic devices"; 34 homepage = "https://github.com/dieselrabbit/screenlogicpy"; 35 license = with licenses; [ gpl3Only ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}