Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-cov, 7 pytest-asyncio, 8 pytest-timeout, 9 responses, 10 pytestCheckHook, 11 requests, 12}: 13 14buildPythonPackage rec { 15 pname = "pyvera"; 16 version = "0.3.15"; 17 format = "pyproject"; 18 19 src = fetchFromGitHub { 20 owner = "pavoni"; 21 repo = pname; 22 rev = version; 23 hash = "sha256-1+xIqOogRUt+blX7AZSKIiU8lpR4AzKIIW/smCSft94="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 propagatedBuildInputs = [ requests ]; 29 30 nativeCheckInputs = [ 31 pytest-asyncio 32 pytest-timeout 33 pytest-cov 34 pytestCheckHook 35 responses 36 ]; 37 38 pythonImportsCheck = [ "pyvera" ]; 39 40 meta = with lib; { 41 description = "Python library to control devices via the Vera hub"; 42 homepage = "https://github.com/pavoni/pyvera"; 43 license = with licenses; [ gpl2Only ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}