nixpkgs/pkgs/development/python-modules/pydeconz/default.nix

42 lines
784 B
Nix
Raw Normal View History

2021-03-23 00:08:39 +01:00
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
2021-04-29 09:40:29 +02:00
, pytest-aiohttp
2021-03-23 00:08:39 +01:00
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pydeconz";
2021-10-20 09:05:46 +02:00
version = "85";
2021-03-23 00:08:39 +01:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Kane610";
repo = "deconz";
rev = "v${version}";
2021-10-20 09:05:46 +02:00
sha256 = "sha256-6GTMG3BfHcfLMoyabFbhsJFVDHmEICuzf32603+jyZ4=";
2021-03-23 00:08:39 +01:00
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aioresponses
2021-04-29 09:40:29 +02:00
pytest-aiohttp
2021-03-23 00:08:39 +01:00
pytestCheckHook
];
pythonImportsCheck = [ "pydeconz" ];
meta = with lib; {
description = "Python library wrapping the Deconz REST API";
homepage = "https://github.com/Kane610/deconz";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}