mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
46 lines
857 B
Nix
46 lines
857 B
Nix
{ 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
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|