python312Packages.pint-xarray: init at 0.4 (#377344)
[NixPkgs.git] / pkgs / development / python-modules / apcaccess / default.nix
blob5fb60a8c6f82cd3a604bb35d1002652e08e1b03e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6 }:
8 buildPythonPackage rec {
9   pname = "apcaccess";
10   version = "0.0.13";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "flyte";
15     repo = "apcaccess";
16     rev = version;
17     hash = "sha256-XLoNRh6MgXCfRtWD9NpVZSyroW6E9nRYw6Grxa+AQkc=";
18   };
20   postPatch = ''
21     substituteInPlace setup.py \
22       --replace "setup_requires='pytest-runner'," ""
23   '';
25   pythonImportsCheck = [ "apcaccess" ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   meta = with lib; {
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 ];
35   };