9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
50 lines
999 B
Nix
50 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 ];
|
|
};
|
|
}
|