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