pythonPAckages.tvdb_api: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 17:20:17 -04:00
parent 173793c63f
commit 97b2d6790a
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 26 additions and 18 deletions

View file

@ -0,0 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, requests-cache
}:
buildPythonPackage rec {
pname = "tvdb_api";
version = "1.10";
src = fetchPypi {
inherit pname version;
sha256 = "0hq887yb3rwc0rcw32lh7xdkk9bbrqy274aspzqkd6f7dyhp73ih";
};
propagatedBuildInputs = [ requests-cache ];
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 ];
};
}

View file

@ -4593,24 +4593,7 @@ in {
word2vec = callPackage ../development/python-modules/word2vec { };
tvdb_api = buildPythonPackage rec {
name = "tvdb_api-${version}";
version = "1.10";
src = pkgs.fetchurl {
url = "mirror://pypi/t/tvdb_api/${name}.tar.gz";
sha256 = "0hq887yb3rwc0rcw32lh7xdkk9bbrqy274aspzqkd6f7dyhp73ih";
};
propagatedBuildInputs = with self; [ requests-cache ];
meta = {
description = "Simple to use TVDB (thetvdb.com) API in Python.";
homepage = "https://github.com/dbr/tvdb_api";
license = licenses.unlicense;
maintainers = with maintainers; [ peterhoeg ];
};
};
tvdb_api = callPackage ../development/python-modules/tvdb_api { };
tvnamer = buildPythonPackage rec {
name = "tvnamer-${version}";