summary refs log tree commit diff
path: root/pkgs/development/python-modules/tvnamer
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-29 17:23:10 -0400
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-30 00:51:22 -0400
commit6fd3323d26b05b88fa811b0d0540534addf23856 (patch)
tree8cbc9eadeb90253ec96f7f264d0d45290ee12495 /pkgs/development/python-modules/tvnamer
parent97b2d6790a89c77844e1114e5cc5fcbfb0f5ca39 (diff)
downloadnixpkgs-6fd3323d26b05b88fa811b0d0540534addf23856.tar
nixpkgs-6fd3323d26b05b88fa811b0d0540534addf23856.tar.gz
nixpkgs-6fd3323d26b05b88fa811b0d0540534addf23856.tar.bz2
nixpkgs-6fd3323d26b05b88fa811b0d0540534addf23856.tar.lz
nixpkgs-6fd3323d26b05b88fa811b0d0540534addf23856.tar.xz
nixpkgs-6fd3323d26b05b88fa811b0d0540534addf23856.tar.zst
nixpkgs-6fd3323d26b05b88fa811b0d0540534addf23856.zip
pythonPackages.tvnamer: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/tvnamer')
-rw-r--r--pkgs/development/python-modules/tvnamer/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tvnamer/default.nix b/pkgs/development/python-modules/tvnamer/default.nix
new file mode 100644
index 00000000000..172c4423920
--- /dev/null
+++ b/pkgs/development/python-modules/tvnamer/default.nix
@@ -0,0 +1,30 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, pytest
+, tvdb_api
+}:
+
+buildPythonPackage rec {
+  pname = "tvnamer";
+  version = "2.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "10iizmwna2xpyc2694hsrvny68y3bdq576p8kxsvg5gj2spnsxav";
+  };
+
+  buildInputs = [ pytest ];
+  propagatedBuildInputs = [ tvdb_api ];
+
+  # a ton of tests fail with: IOError: tvnamer/main.py could not be found in . or ..
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "Automatic TV episode file renamer, uses data from thetvdb.com via tvdb_api.";
+    homepage = "https://github.com/dbr/tvnamer";
+    license = licenses.unlicense;
+    maintainers = with maintainers; [ peterhoeg ];
+  };
+
+}