depot/third_party/nixpkgs/pkgs/development/python-modules/pyclimacell/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

39 lines
738 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pytz
}:
buildPythonPackage rec {
pname = "pyclimacell";
version = "0.18.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "raman325";
repo = pname;
rev = "v${version}";
hash = "sha256-jWHjnebg4Aar48gid7bB7XYXOQtSqbmVmASsZd0YoPc=";
};
propagatedBuildInputs = [
aiohttp
pytz
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "pyclimacell" ];
meta = with lib; {
description = "Python client for ClimaCell API";
homepage = "https://github.com/raman325/pyclimacell";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}