c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
48 lines
937 B
Nix
48 lines
937 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyjwt
|
|
, ratelimit
|
|
, requests
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyflume";
|
|
version = "0.8.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ChrisMandich";
|
|
repo = "PyFlume";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-RtzbAXjMtvKc8vnZIxIJnc6CS+BrYcQgdy5bVaJumg0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyjwt
|
|
ratelimit
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
requests-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyflume"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to work with Flume sensors";
|
|
homepage = "https://github.com/ChrisMandich/PyFlume";
|
|
changelog = "https://github.com/ChrisMandich/PyFlume/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|