depot/third_party/nixpkgs/pkgs/development/python-modules/regenmaschine/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

63 lines
1.1 KiB
Nix

{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "regenmaschine";
version = "2022.09.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-DEa9bh6dOBMyqgts9UoFOfC97vaZ4d6NPYlKC8ayrgk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aresponses
asynctest
pytest-aiohttp
pytest-asyncio
pytest-mock
pytestCheckHook
];
disabledTestPaths = [
# Examples are prefix with test_
"examples/"
];
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 ];
};
}