nixpkgs/pkgs/development/python-modules/openhomedevice/default.nix
2023-06-28 10:10:20 +00:00

51 lines
999 B
Nix

{ lib
, aioresponses
, async-upnp-client
, buildPythonPackage
, fetchFromGitHub
, lxml
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "openhomedevice";
version = "2.2";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "bazwilliams";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-GGp7nKFH01m1KW6yMkKlAdd26bDi8JDWva6OQ0CWMIw=";
};
propagatedBuildInputs = [
async-upnp-client
lxml
];
nativeCheckInputs = [
aioresponses
pytestCheckHook
];
pythonImportsCheck = [
"openhomedevice"
];
pytestFlagsArray = [
"tests/*.py"
];
meta = with lib; {
description = "Python module to access Linn Ds and Openhome devices";
homepage = "https://github.com/bazwilliams/openhomedevice";
changelog = "https://github.com/bazwilliams/openhomedevice/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}