aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-twitch-client/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/python-twitch-client/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/python-twitch-client/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-twitch-client/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-twitch-client/default.nix
new file mode 100644
index 000000000000..30f6ab9a0a71
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-twitch-client/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+, pythonOlder
+, requests
+, responses
+}:
+
+buildPythonPackage rec {
+ pname = "python-twitch-client";
+ version = "0.7.1";
+ disabled = pythonOlder "3.6";
+
+ src = fetchFromGitHub {
+ owner = "tsifrer";
+ repo = pname;
+ rev = version;
+ sha256 = "10wwkam3dw0nqr3v9xzigx1zjlrnrhzr7jvihddvzi84vjb6j443";
+ };
+
+ propagatedBuildInputs = [ requests ];
+
+ checkInputs = [
+ pytestCheckHook
+ responses
+ ];
+
+ pythonImportsCheck = [ "twitch" ];
+
+ meta = with lib; {
+ description = "Python wrapper for the Twitch API";
+ homepage = "https://github.com/tsifrer/python-twitch-client";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ fab ];
+ };
+}