3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pysonos/default.nix

52 lines
904 B
Nix
Raw Normal View History

2019-05-10 14:34:29 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
2019-05-10 14:34:29 +01:00
, isPy3k
, xmltodict
, ifaddr
, requests
2019-05-10 14:34:29 +01:00
# Test dependencies
, pytestCheckHook
, mock
, requests-mock
2019-05-10 14:34:29 +01:00
}:
buildPythonPackage rec {
pname = "pysonos";
version = "0.0.54";
2019-05-10 14:34:29 +01:00
disabled = !isPy3k;
# pypi package is missing test fixtures
src = fetchFromGitHub {
owner = "amelchio";
repo = pname;
rev = "v${version}";
sha256 = "sha256-gBOknYHL5nQWFVhCbLN0Ah+1fovcNY4P2myryZnUadk=";
2019-05-10 14:34:29 +01:00
};
propagatedBuildInputs = [
ifaddr
requests
xmltodict
];
2019-05-10 14:34:29 +01:00
checkInputs = [
pytestCheckHook
mock
requests-mock
2019-05-10 14:34:29 +01:00
];
disabledTests = [
"test_desc_from_uri" # test requires network access
];
meta = with lib; {
2019-05-10 14:34:29 +01:00
description = "A SoCo fork with fixes for Home Assistant";
homepage = "https://github.com/amelchio/pysonos";
license = licenses.mit;
maintainers = with maintainers; [ juaningan ];
2019-05-10 14:34:29 +01:00
};
}