pythonPAckages.tvdb_api: refactor move to python-modules
This commit is contained in:
parent
173793c63f
commit
97b2d6790a
2 changed files with 26 additions and 18 deletions
25
pkgs/development/python-modules/tvdb_api/default.nix
Normal file
25
pkgs/development/python-modules/tvdb_api/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue