Files
nixpkgs/pkgs/development/python-modules/pyfronius/default.nix

42 lines
849 B
Nix

{
lib,
aiohttp,
aiounittest,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pyfronius";
version = "0.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "nielstron";
repo = "pyfronius";
tag = version;
hash = "sha256-Ns4OpBvj40aQkCBTnKHMTSpyNu5zgfXDtmz1aW3bmEU=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aiounittest
pytestCheckHook
];
pythonImportsCheck = [ "pyfronius" ];
meta = with lib; {
description = "Python module to communicate with Fronius Symo";
homepage = "https://github.com/nielstron/pyfronius";
changelog = "https://github.com/nielstron/pyfronius/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}