98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
47 lines
942 B
Nix
47 lines
942 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pyjwt,
|
|
ratelimit,
|
|
requests,
|
|
requests-mock,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyflume";
|
|
version = "0.8.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ChrisMandich";
|
|
repo = "PyFlume";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/8gLKe+6GaPQe0J3YBmOVcAcAcqfrWM7UQCoX+qOEmw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|