From dfbf6213b4d0f7dd8b44899b18efe6bf3b3b8b6d Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Fri, 19 Oct 2018 15:46:04 +0800 Subject: [PATCH] pythonPackages.snapcast: init at 2.0.9 --- .../python-modules/snapcast/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/snapcast/default.nix diff --git a/pkgs/development/python-modules/snapcast/default.nix b/pkgs/development/python-modules/snapcast/default.nix new file mode 100644 index 000000000000..bb1375417911 --- /dev/null +++ b/pkgs/development/python-modules/snapcast/default.nix @@ -0,0 +1,28 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k, pytest +, construct }: + +buildPythonPackage rec { + pname = "snapcast"; + version = "2.0.9"; + + disabled = !isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "0hlfcg0qdfavjzhxz4v2spjkj6440a1254wrncfkfkyff6rv9x3s"; + }; + + checkInputs = [ pytest ]; + + propagatedBuildInputs = [ construct ]; + + # no checks from Pypi - https://github.com/happyleavesaoc/python-snapcast/issues/23 + doCheck = false; + + meta = with stdenv.lib; { + description = "Control Snapcast, a multi-room synchronous audio solution"; + homepage = https://github.com/happyleavesaoc/python-snapcast/; + license = licenses.mit; + maintainers = with maintainers; [ peterhoeg ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 83f6aeda7f85..9f307955d3fa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -642,6 +642,8 @@ in { slicerator = callPackage ../development/python-modules/slicerator { }; + snapcast = callPackage ../development/python-modules/snapcast { }; + spglib = callPackage ../development/python-modules/spglib { }; statistics = callPackage ../development/python-modules/statistics { };