nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 44 lines 971 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytz, 7 requests, 8 paho-mqtt, 9}: 10 11buildPythonPackage rec { 12 pname = "yoto-api"; 13 version = "2.1.2"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "cdnninja"; 18 repo = "yoto_api"; 19 tag = "v${version}"; 20 hash = "sha256-bRJjDgmMLJcmWyyxTg0BLjBukGi8JX9WWz9IoUl9Fcw="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 pytz 27 requests 28 paho-mqtt 29 ]; 30 31 # All tests require access to and authentication with the Yoto API (api.yotoplay.com). 32 doCheck = false; 33 34 pythonImportsCheck = [ "yoto_api" ]; 35 36 meta = { 37 changelog = "https://github.com/cdnninja/yoto_api/releases/tag/${src.tag}"; 38 homepage = "https://github.com/cdnninja/yoto_api"; 39 platforms = lib.platforms.unix; 40 maintainers = with lib.maintainers; [ seberm ]; 41 license = lib.licenses.mit; 42 description = "Python package that makes it a bit easier to work with the yoto play API"; 43 }; 44}