depot/third_party/nixpkgs/pkgs/development/python-modules/openhomedevice/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

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 ];
};
}