python312Packages.yoda: 2.0.1 -> 2.0.2
[NixPkgs.git] / pkgs / development / python-modules / pyeconet / default.nix
blobfd68e98504c72dcb2b69e507da777d45c651662f
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   paho-mqtt,
7   pythonOlder,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "pyeconet";
13   version = "0.1.23";
14   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "w1ll1am23";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-zpaKUEg78vzvuTtVauCUUt0U92NXVyNhEfgKVrRzdnM=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   propagatedBuildInputs = [
28     paho-mqtt
29     aiohttp
30   ];
32   # Tests require credentials
33   doCheck = false;
35   pythonImportsCheck = [ "pyeconet" ];
37   meta = with lib; {
38     description = "Python interface to the EcoNet API";
39     homepage = "https://github.com/w1ll1am23/pyeconet";
40     changelog = "https://github.com/w1ll1am23/pyeconet/releases/tag/v${version}";
41     license = with licenses; [ mit ];
42     maintainers = with maintainers; [ fab ];
43   };