depot/third_party/nixpkgs/pkgs/development/python-modules/pysensibo/default.nix
Default email b41113241d Project import generated by Copybara.
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
2022-09-22 14:36:57 +02:00

39 lines
732 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysensibo";
version = "1.0.20";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "andrey-git";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-L2NP4XS+dPlBr2h8tsGoa4G7tI9yiI4fwrhvQaKkexk=";
};
propagatedBuildInputs = [
aiohttp
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [
"pysensibo"
];
meta = with lib; {
description = "Module for interacting with Sensibo";
homepage = "https://github.com/andrey-git/pysensibo";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}