about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/tvdb_api/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/tvdb_api/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/tvdb_api/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/tvdb_api/default.nix b/nixpkgs/pkgs/development/python-modules/tvdb_api/default.nix
new file mode 100644
index 000000000000..6c298dce7c7b
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/tvdb_api/default.nix
@@ -0,0 +1,31 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, requests-cache
+, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "tvdb_api";
+  version = "2.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "b1de28a5100121d91b1f6a8ec7e86f2c4bdf48fb22fab3c6fe21e7fb7346bf8f";
+  };
+
+  propagatedBuildInputs = [ requests-cache ];
+
+  checkInputs = [ pytest ];
+
+  # requires network access
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "Simple to use TVDB (thetvdb.com) API in Python";
+    homepage = "https://github.com/dbr/tvdb_api";
+    license = licenses.unlicense;
+    maintainers = with maintainers; [ peterhoeg ];
+  };
+
+}