depot/third_party/nixpkgs/pkgs/development/python-modules/keba-kecontact/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

42 lines
894 B
Nix

{ lib
, asyncio-dgram
, buildPythonPackage
, fetchFromGitHub
, netifaces
, pythonOlder
}:
buildPythonPackage rec {
pname = "keba-kecontact";
version = "3.0.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dannerph";
repo = "keba-kecontact";
rev = "refs/tags/${version}";
hash = "sha256-gR1ut2IjrU/JMy8/ZFv0jQTB6c3A/tZqtXMpQsapuj0=";
};
propagatedBuildInputs = [
asyncio-dgram
netifaces
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"keba_kecontact"
];
meta = with lib; {
description = "Python library for controlling KEBA charging stations";
homepage = "https://github.com/dannerph/keba-kecontact";
changelog = "https://github.com/dannerph/keba-kecontact/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}