1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 00:19:25 +03:00
nixpkgs/pkgs/development/python-modules/pywemo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
885 B
Nix
Raw Normal View History

2021-04-12 08:57:18 +02:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, ifaddr
, lxml
, poetry-core
, pytest-vcr
, pytestCheckHook
, pythonOlder
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "pywemo";
2022-02-08 08:43:48 +01:00
version = "0.8.0";
2021-04-12 08:57:18 +02:00
format = "pyproject";
2021-11-14 13:22:07 +01:00
2021-04-12 08:57:18 +02:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
2022-02-08 08:43:48 +01:00
hash = "sha256-bGoqhrjoRKUGPBNfmr2XP+1HL5mdRi6XoCi0BdvY9x8=";
2021-04-12 08:57:18 +02:00
};
2021-07-13 00:22:44 +02:00
nativeBuildInputs = [
poetry-core
];
2021-04-12 08:57:18 +02:00
propagatedBuildInputs = [
ifaddr
requests
urllib3
lxml
];
checkInputs = [
pytest-vcr
pytestCheckHook
];
2021-11-14 13:22:07 +01:00
pythonImportsCheck = [
"pywemo"
];
2021-04-12 08:57:18 +02:00
meta = with lib; {
description = "Python module to discover and control WeMo devices";
homepage = "https://github.com/pywemo/pywemo";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}