mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
e3f04ae01b
Diff: https://github.com/w1ll1am23/pyeconet/compare/refs/tags/v0.1.22...v0.1.23 Changelog: https://github.com/w1ll1am23/pyeconet/releases/tag/v0.1.23
45 lines
904 B
Nix
45 lines
904 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
paho-mqtt,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyeconet";
|
|
version = "0.1.23";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "w1ll1am23";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-zpaKUEg78vzvuTtVauCUUt0U92NXVyNhEfgKVrRzdnM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
paho-mqtt
|
|
aiohttp
|
|
];
|
|
|
|
# Tests require credentials
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyeconet" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python interface to the EcoNet API";
|
|
homepage = "https://github.com/w1ll1am23/pyeconet";
|
|
changelog = "https://github.com/w1ll1am23/pyeconet/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|