at 22.05-pre 820 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, requests 7, requests-mock 8}: 9 10buildPythonPackage rec { 11 pname = "nexia"; 12 version = "0.9.11"; 13 disabled = pythonOlder "3.5"; 14 15 src = fetchFromGitHub { 16 owner = "bdraco"; 17 repo = pname; 18 rev = version; 19 sha256 = "0ql08nfvh6rjhjdh78gzih7az95m0fc9wxc22yqmlc9grifnp9i5"; 20 }; 21 22 propagatedBuildInputs = [ 23 requests 24 ]; 25 26 checkInputs = [ 27 requests-mock 28 pytestCheckHook 29 ]; 30 31 postPatch = '' 32 substituteInPlace setup.py --replace '"pytest-runner",' "" 33 ''; 34 35 pythonImportsCheck = [ "nexia" ]; 36 37 meta = with lib; { 38 description = "Python module for Nexia thermostats"; 39 homepage = "https://github.com/bdraco/nexia"; 40 license = with licenses; [ asl20 ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}