1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, pyjwt 7, ratelimit 8, requests 9, requests-mock 10}: 11 12buildPythonPackage rec { 13 pname = "pyflume"; 14 version = "0.8.3"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.10"; 18 19 src = fetchFromGitHub { 20 owner = "ChrisMandich"; 21 repo = "PyFlume"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-RtzbAXjMtvKc8vnZIxIJnc6CS+BrYcQgdy5bVaJumg0="; 24 }; 25 26 propagatedBuildInputs = [ 27 pyjwt 28 ratelimit 29 requests 30 ]; 31 32 nativeCheckInputs = [ 33 requests-mock 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "pyflume" 39 ]; 40 41 meta = with lib; { 42 description = "Python module to work with Flume sensors"; 43 homepage = "https://github.com/ChrisMandich/PyFlume"; 44 changelog = "https://github.com/ChrisMandich/PyFlume/releases/tag/v${version}"; 45 license = with licenses; [ mit ]; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}