Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "pyprusalink"; 11 version = "1.1.0"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "home-assistant-libs"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-XRtbb7kceiqi8pioTWStRo0drCtQfy1t62jCMihlIec="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 ]; 30 31 # Module doesn't have tests 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "pyprusalink" 36 ]; 37 38 meta = with lib; { 39 description = "Library to communicate with PrusaLink "; 40 homepage = "https://github.com/home-assistant-libs/pyprusalink"; 41 license = with licenses; [ asl20 ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}