depot/third_party/nixpkgs/pkgs/development/python-modules/regenmaschine/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

55 lines
1 KiB
Nix

{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "regenmaschine";
version = "3.1.3";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-3Q0JQQVspzuQQAn3S46uFbOYW2zQ7c1UL4zjEOnifDY=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aresponses
asynctest
pytest-aiohttp
pytest-asyncio
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 ];
};
}