8 buildPythonPackage rec {
11 format = "setuptools";
13 src = fetchFromGitHub {
17 hash = "sha256-XLoNRh6MgXCfRtWD9NpVZSyroW6E9nRYw6Grxa+AQkc=";
21 substituteInPlace setup.py \
22 --replace "setup_requires='pytest-runner'," ""
25 pythonImportsCheck = [ "apcaccess" ];
27 nativeCheckInputs = [ pytestCheckHook ];
30 description = "Library offers programmatic access to the status information provided by apcupsd over its Network Information Server";
31 mainProgram = "apcaccess";
32 homepage = "https://github.com/flyte/apcaccess";
33 license = licenses.mit;
34 maintainers = with maintainers; [ uvnikita ];