depot/third_party/nixpkgs/pkgs/development/python-modules/pysensibo/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

39 lines
732 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysensibo";
version = "1.0.19";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "andrey-git";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-pqg+NsdbSyXgC+4/AtbI4BZ5h2pMhvvBdQI9lHj6HME=";
};
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 ];
};
}