Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 793 B view raw
1{ lib 2, bleak 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "aranet4"; 12 version = "2.1.3"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "Anrijs"; 19 repo = "Aranet4-Python"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-5q4eOC9iuN8pUmDsiQ7OwEXkxi4KdL+bhGVjlQlTBAg="; 22 }; 23 24 propagatedBuildInputs = [ 25 bleak 26 requests 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "aranet4" 35 ]; 36 37 meta = with lib; { 38 description = "Module to interact with Aranet4 devices"; 39 homepage = "https://github.com/Anrijs/Aranet4-Python"; 40 license = with licenses; [ mit ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}