diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/skybellpy/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/skybellpy/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/skybellpy/default.nix b/nixpkgs/pkgs/development/python-modules/skybellpy/default.nix new file mode 100644 index 000000000000..c94b03bcc667 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/skybellpy/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, colorlog +, fetchFromGitHub +, pytest-sugar +, pytest-timeout +, pytestCheckHook +, pythonOlder +, requests +, requests-mock +}: + +buildPythonPackage rec { + pname = "skybellpy"; + version = "0.6.3"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "MisterWil"; + repo = pname; + rev = "v${version}"; + sha256 = "1ghvm0pcdyhq6xfjc2dkldd701x77w07077sx09xsk6q2milmvzz"; + }; + + propagatedBuildInputs = [ + colorlog + requests + ]; + + checkInputs = [ + pytest-sugar + pytest-timeout + pytestCheckHook + requests-mock + ]; + + pythonImportsCheck = [ "skybellpy" ]; + + meta = with lib; { + description = "Python wrapper for the Skybell alarm API"; + homepage = "https://github.com/MisterWil/skybellpy"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |