depot/third_party/nixpkgs/pkgs/development/python-modules/pyfritzhome/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

47 lines
811 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, nose
, mock
}:
buildPythonPackage rec {
pname = "pyfritzhome";
version = "0.6.7";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "hthiery";
repo = "python-fritzhome";
rev = version;
hash = "sha256-cRG+Dm3KG6no3/OQCZkvISW1yE5azdDVTa5oTV1sRpk=";
};
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
mock
nose
];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [
"pyfritzhome"
];
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 ];
};
}