nixpkgs/pkgs/development/python-modules/regenmaschine/default.nix
2021-03-04 22:07:19 +01:00

52 lines
1,007 B
Nix

{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "regenmaschine";
version = "3.1.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-lARti3Sb/jh7h8x+lFLqkM/BlL6XmELm46owsL041Cw=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp ];
checkInputs = [
aresponses
asynctest
pytest-aiohttp
pytest-asyncio
pytest-cov
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "regenmaschine" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Python library for interacting with RainMachine smart sprinkler controllers";
homepage = "https://github.com/bachya/regenmaschine";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}