Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, fetchFromGitHub 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "volkszaehler"; 11 version = "0.4.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.9"; 15 16 src = fetchFromGitHub { 17 owner = "home-assistant-ecosystem"; 18 repo = "python-volkszaehler"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-jX0nwBsBYU383LG8f08FVI7Lo9gnyPSQ0fiEF8dQc/M="; 21 }; 22 23 propagatedBuildInputs = [ 24 aiohttp 25 async-timeout 26 ]; 27 28 # no tests are present 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "volkszaehler" 33 ]; 34 35 meta = with lib; { 36 description = "Python module for interacting with the Volkszahler API"; 37 homepage = "https://github.com/home-assistant-ecosystem/python-volkszaehler"; 38 changelog = "https://github.com/home-assistant-ecosystem/python-volkszaehler/releases/tag/${version}"; 39 license = with licenses; [ mit ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}