evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / fritzconnection / default.nix
blob84afd730f495c91c14c48b969461d343260214d4
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   pytestCheckHook,
7   requests,
8   segno,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "fritzconnection";
14   version = "1.14.0";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "kbr";
21     repo = "fritzconnection";
22     rev = "refs/tags/${version}";
23     hash = "sha256-1LLfSEOKqUIhWIR/RQEG0Bp41d908hAKDlslJlWCHys=";
24   };
26   build-system = [ setuptools ];
28   dependencies = [ requests ];
30   optional-dependencies = {
31     qr = [ segno ];
32   };
34   nativeCheckInputs = [ pytestCheckHook ];
36   preCheck = ''
37     export HOME=$TEMP
38   '';
40   pythonImportsCheck = [ "fritzconnection" ];
42   disabledTestPaths = [
43     # Functional tests require network access
44     "fritzconnection/tests/test_functional.py"
45   ];
47   meta = with lib; {
48     description = "Python module to communicate with the AVM Fritz!Box";
49     homepage = "https://github.com/kbr/fritzconnection";
50     changelog = "https://fritzconnection.readthedocs.io/en/${version}/sources/version_history.html";
51     license = licenses.mit;
52     maintainers = with maintainers; [
53       dotlambda
54       valodim
55     ];
56   };