nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 47 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 requests, 7 responses, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "python-twitch-client"; 13 version = "0.7.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "tsifrer"; 18 repo = "python-twitch-client"; 19 tag = version; 20 sha256 = "sha256-gxBpltwExb9bg3HLkz/MNlP5Q3/x97RHxhbwNqqanIM="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 propagatedBuildInputs = [ requests ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 responses 30 ]; 31 32 pythonImportsCheck = [ "twitch" ]; 33 34 disabledTests = [ 35 # Tests require network access 36 "test_delete_from_community" 37 "test_update" 38 ]; 39 40 meta = { 41 description = "Python wrapper for the Twitch API"; 42 homepage = "https://github.com/tsifrer/python-twitch-client"; 43 changelog = "https://github.com/tsifrer/python-twitch-client/blob/${version}/CHANGELOG.md"; 44 license = with lib.licenses; [ mit ]; 45 maintainers = with lib.maintainers; [ fab ]; 46 }; 47}