nixos-option: rewrite as a nix script, 2nd try (#369151)
[NixPkgs.git] / pkgs / development / python-modules / pyflume / default.nix
blobe3c1bfe568823b6b700c2c8c0bbb64aa21c3b930
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   pyjwt,
8   ratelimit,
9   requests,
10   requests-mock,
13 buildPythonPackage rec {
14   pname = "pyflume";
15   version = "0.8.7";
16   format = "setuptools";
18   disabled = pythonOlder "3.10";
20   src = fetchFromGitHub {
21     owner = "ChrisMandich";
22     repo = "PyFlume";
23     tag = "v${version}";
24     hash = "sha256-/8gLKe+6GaPQe0J3YBmOVcAcAcqfrWM7UQCoX+qOEmw=";
25   };
27   propagatedBuildInputs = [
28     pyjwt
29     ratelimit
30     requests
31   ];
33   nativeCheckInputs = [
34     requests-mock
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [ "pyflume" ];
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   };