ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pysonos / default.nix
blob132c904dc3ef0b1acd5056ef71f0546fa739f37b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , isPy3k
5 , xmltodict
6 , ifaddr
7 , requests
9   # Test dependencies
10 , pytestCheckHook
11 , mock
12 , requests-mock
15 buildPythonPackage rec {
16   pname = "pysonos";
17   version = "0.0.54";
19   disabled = !isPy3k;
21   # pypi package is missing test fixtures
22   src = fetchFromGitHub {
23     owner = "amelchio";
24     repo = pname;
25     rev = "v${version}";
26     sha256 = "sha256-gBOknYHL5nQWFVhCbLN0Ah+1fovcNY4P2myryZnUadk=";
27   };
29   propagatedBuildInputs = [
30     ifaddr
31     requests
32     xmltodict
33   ];
35   checkInputs = [
36     pytestCheckHook
37     mock
38     requests-mock
39   ];
41   disabledTests = [
42     "test_desc_from_uri" # test requires network access
43   ];
45   meta = with lib; {
46     description = "A SoCo fork with fixes for Home Assistant";
47     homepage = "https://github.com/amelchio/pysonos";
48     license = licenses.mit;
49     maintainers = with maintainers; [ juaningan ];
50   };