Merge pull request #113802 from fabaff/pyflume

authored by Sandro and committed by GitHub 716b898c 7866dda0

+84 -1
+45
pkgs/development/python-modules/pyflume/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pytestCheckHook 5 + , pythonOlder 6 + , pyjwt 7 + , ratelimit 8 + , pytz 9 + , requests 10 + , requests-mock 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "pyflume"; 15 + version = "0.6.2"; 16 + disabled = pythonOlder "3.7"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "ChrisMandich"; 20 + repo = "PyFlume"; 21 + rev = "v${version}"; 22 + sha256 = "0i181c8722j831bjlcjwv5ccy20hl8zzlv7bfp8w0976gdmv4iz8"; 23 + }; 24 + 25 + propagatedBuildInputs = [ 26 + pyjwt 27 + ratelimit 28 + pytz 29 + requests 30 + ]; 31 + 32 + checkInputs = [ 33 + requests-mock 34 + pytestCheckHook 35 + ]; 36 + 37 + pythonImportsCheck = [ "pyflume" ]; 38 + 39 + meta = with lib; { 40 + description = "Python module to work with Flume sensors"; 41 + homepage = "https://github.com/ChrisMandich/PyFlume"; 42 + license = with licenses; [ mit ]; 43 + maintainers = with maintainers; [ fab ]; 44 + }; 45 + }
+34
pkgs/development/python-modules/ratelimit/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pytestCheckHook 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "ratelimit"; 9 + version = "2.2.1"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "tomasbasham"; 13 + repo = pname; 14 + rev = "v${version}"; 15 + sha256 = "04hy3hhh5xdqcsz0lx8j18zbj88kh5ik4wyi5d3a5sfy2hx70in2"; 16 + }; 17 + 18 + postPatch = '' 19 + sed -i "/--cov/d" pytest.ini 20 + ''; 21 + 22 + checkInputs = [ pytestCheckHook ]; 23 + 24 + pytestFlagsArray = [ "tests" ]; 25 + 26 + pythonImportsCheck = [ "ratelimit" ]; 27 + 28 + meta = with lib; { 29 + description = "Python API Rate Limit Decorator"; 30 + homepage = "https://github.com/tomasbasham/ratelimit"; 31 + license = with licenses; [ mit ]; 32 + maintainers = with maintainers; [ fab ]; 33 + }; 34 + }
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 264 "flick_electric" = ps: with ps; [ ]; # missing inputs: PyFlick 265 "flo" = ps: with ps; [ aioflo ]; 266 "flock" = ps: with ps; [ ]; 267 - "flume" = ps: with ps; [ ]; # missing inputs: pyflume 268 "flunearyou" = ps: with ps; [ ]; # missing inputs: pyflunearyou 269 "flux" = ps: with ps; [ ]; 270 "flux_led" = ps: with ps; [ flux-led ];
··· 264 "flick_electric" = ps: with ps; [ ]; # missing inputs: PyFlick 265 "flo" = ps: with ps; [ aioflo ]; 266 "flock" = ps: with ps; [ ]; 267 + "flume" = ps: with ps; [ pyflume ]; 268 "flunearyou" = ps: with ps; [ ]; # missing inputs: pyflunearyou 269 "flux" = ps: with ps; [ ]; 270 "flux_led" = ps: with ps; [ flux-led ];
+4
pkgs/top-level/python-packages.nix
··· 5464 5465 pyflakes = callPackage ../development/python-modules/pyflakes { }; 5466 5467 pyfma = callPackage ../development/python-modules/pyfma { }; 5468 5469 pyfribidi = callPackage ../development/python-modules/pyfribidi { }; ··· 6746 rarfile = callPackage ../development/python-modules/rarfile { inherit (pkgs) libarchive; }; 6747 6748 rasterio = callPackage ../development/python-modules/rasterio { gdal = pkgs.gdal_2; }; # gdal 3.0 not supported yet 6749 6750 ratelimiter = callPackage ../development/python-modules/ratelimiter { }; 6751
··· 5464 5465 pyflakes = callPackage ../development/python-modules/pyflakes { }; 5466 5467 + pyflume = callPackage ../development/python-modules/pyflume { }; 5468 + 5469 pyfma = callPackage ../development/python-modules/pyfma { }; 5470 5471 pyfribidi = callPackage ../development/python-modules/pyfribidi { }; ··· 6748 rarfile = callPackage ../development/python-modules/rarfile { inherit (pkgs) libarchive; }; 6749 6750 rasterio = callPackage ../development/python-modules/rasterio { gdal = pkgs.gdal_2; }; # gdal 3.0 not supported yet 6751 + 6752 + ratelimit = callPackage ../development/python-modules/ratelimit { }; 6753 6754 ratelimiter = callPackage ../development/python-modules/ratelimiter { }; 6755