Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 43 lines 819 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.6"; 13 disabled = pythonOlder "3.5"; 14 15 src = fetchFromGitHub { 16 owner = "bdraco"; 17 repo = pname; 18 rev = version; 19 sha256 = "1k8h1p2zqm8gghff03jh8q3zik7jw2l686cyyg36r3qrgz6zi19q"; 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}