nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 60 lines 1.2 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 certifi, 7 fetchFromGitHub, 8 poetry-core, 9 pytest-aiohttp, 10 pytest-asyncio, 11 pytest-mock, 12 pytestCheckHook, 13 typing-extensions, 14}: 15 16buildPythonPackage rec { 17 pname = "regenmaschine"; 18 version = "2024.03.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "bachya"; 23 repo = "regenmaschine"; 24 tag = version; 25 hash = "sha256-RdmK6oK92j4xqLoAjjqlONYu3IfNNWudo4v7jcc+VGU="; 26 }; 27 28 nativeBuildInputs = [ poetry-core ]; 29 30 propagatedBuildInputs = [ 31 aiohttp 32 certifi 33 typing-extensions 34 ]; 35 36 nativeCheckInputs = [ 37 aresponses 38 pytest-aiohttp 39 pytest-asyncio 40 pytest-mock 41 pytestCheckHook 42 ]; 43 44 disabledTestPaths = [ 45 # Examples are prefix with test_ 46 "examples/" 47 ]; 48 49 pythonImportsCheck = [ "regenmaschine" ]; 50 51 __darwinAllowLocalNetworking = true; 52 53 meta = { 54 description = "Python library for interacting with RainMachine smart sprinkler controllers"; 55 homepage = "https://github.com/bachya/regenmaschine"; 56 changelog = "https://github.com/bachya/regenmaschine/releases/tag/${version}"; 57 license = with lib.licenses; [ mit ]; 58 maintainers = with lib.maintainers; [ fab ]; 59 }; 60}