ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / roonapi / default.nix
blob84909ca056599f140c9962a2e8170e93a70ed3ae
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , ifaddr
5 , poetry-core
6 , pythonOlder
7 , requests
8 , six
9 , websocket-client
12 buildPythonPackage rec {
13   pname = "roonapi";
14   version = "0.1.1";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "pavoni";
21     repo = "pyroon";
22     rev = version;
23     sha256 = "sha256-GEgm250uALTXIEMBWmluqGw/dw2TfGmUIcItfzonGkU=";
24   };
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   propagatedBuildInputs = [
31     ifaddr
32     requests
33     six
34     websocket-client
35   ];
37   # Tests require access to the Roon API
38   doCheck = false;
40   pythonImportsCheck = [
41     "roonapi"
42   ];
44   meta = with lib; {
45     description = "Python library to interface with the Roon API";
46     homepage = "https://github.com/pavoni/pyroon";
47     license = with licenses; [ asl20 ];
48     maintainers = with maintainers; [ fab ];
49   };