depot/third_party/nixpkgs/pkgs/development/python-modules/elmax/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

40 lines
830 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, poetry-core
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "elmax";
version = "0.1.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-elmax";
rev = version;
sha256 = "sha256-vDISJ/CVOjpM+GPF2TCm3/AMFTWTM0b/+ZPCpAEvNvY=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
httpx
yarl
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "elmax" ];
meta = with lib; {
description = "Python API client for the Elmax Cloud services";
homepage = "https://github.com/home-assistant-ecosystem/python-elmax";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}