Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyflume / default.nix
blob4a49c8160a25200c9e27373ac024c4b017eb5409
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , pyjwt
7 , ratelimit
8 , requests
9 , requests-mock
12 buildPythonPackage rec {
13   pname = "pyflume";
14   version = "0.8.3";
15   format = "setuptools";
17   disabled = pythonOlder "3.10";
19   src = fetchFromGitHub {
20     owner = "ChrisMandich";
21     repo = "PyFlume";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-RtzbAXjMtvKc8vnZIxIJnc6CS+BrYcQgdy5bVaJumg0=";
24   };
26   propagatedBuildInputs = [
27     pyjwt
28     ratelimit
29     requests
30   ];
32   nativeCheckInputs = [
33     requests-mock
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [
38     "pyflume"
39   ];
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   };