depot/third_party/nixpkgs/pkgs/development/python-modules/pyfritzhome/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

34 lines
685 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, requests
, nose, mock }:
buildPythonPackage rec {
pname = "pyfritzhome";
version = "0.4.2";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0ncyv8svw0fhs01ijjkb1gcinb3jpyjvv9xw1bhnf4ri7b27g6ww";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
mock
nose
];
checkPhase = ''
nosetests --with-coverage
'';
meta = with lib; {
description = "Python Library to access AVM FRITZ!Box homeautomation";
homepage = "https://github.com/hthiery/python-fritzhome";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}