From 904648c847171a887c78c26dad872ef35623b3d1 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Mon, 8 Aug 2022 16:55:00 -0300 Subject: [PATCH 1/2] python3Packages.cinemagoer: init 2022.2.11 * package imdbpy has been renamed to cinemagor at upstream. * imdbpy is deprecated. --- .../python-modules/cinemagoer/default.nix | 34 +++++++++++++++++++ .../python-modules/imdbpy/default.nix | 34 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 4 +-- 4 files changed, 37 insertions(+), 36 deletions(-) create mode 100644 pkgs/development/python-modules/cinemagoer/default.nix delete mode 100644 pkgs/development/python-modules/imdbpy/default.nix diff --git a/pkgs/development/python-modules/cinemagoer/default.nix b/pkgs/development/python-modules/cinemagoer/default.nix new file mode 100644 index 000000000000..45d80c26b8b3 --- /dev/null +++ b/pkgs/development/python-modules/cinemagoer/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchPypi +, lxml +, sqlalchemy +}: + +buildPythonPackage rec { + pname = "cinemagoer"; + version = "2022.2.11"; + + src = fetchPypi { + inherit pname version; + sha256 = "8efe29dab44a7d275702f3160746015bd55c87b2eed85991dd57dda42594e6c6"; + }; + + propagatedBuildInputs = [ + lxml + sqlalchemy + ]; + + # Tests require networking, and https://github.com/cinemagoer/cinemagoer/issues/240 + doCheck = false; + + pythonImportsCheck = [ "imdb" ]; # Former "imdbpy", upstream is yet to rename here + + meta = with lib; { + description = "A Python package for retrieving and managing the data of the IMDb movie database about movies and people"; + downloadPage = "https://github.com/cinemagoer/cinemagoer/"; + homepage = "https://cinemagoer.github.io/"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ superherointj ]; + }; +} diff --git a/pkgs/development/python-modules/imdbpy/default.nix b/pkgs/development/python-modules/imdbpy/default.nix deleted file mode 100644 index f966a3f8d3c2..000000000000 --- a/pkgs/development/python-modules/imdbpy/default.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, sqlalchemy -}: - -buildPythonPackage rec { - pname = "imdbpy"; - version = "2022.7.9"; - - src = fetchPypi { - pname = "IMDbPY"; - inherit version; - sha256 = "sha256-gKXt+KhxE/8ipE0A/XbUIsQs/uzU6oIL4zdTuPJL9OY="; - }; - - propagatedBuildInputs = [ - lxml - sqlalchemy - ]; - - # Tests require networking, and https://github.com/alberanid/imdbpy/issues/240 - doCheck = false; - - pythonImportsCheck = [ "imdb" ]; - - meta = with lib; { - description = "Python package for retrieving and managing the data of the IMDb database"; - homepage = "https://imdbpy.github.io/"; - license = licenses.gpl2Only; - maintainers = with maintainers; [ ivar ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index ba7623e80b7a..fd546e026b56 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -90,6 +90,7 @@ mapAliases ({ hdlparse = throw "hdlparse has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18 hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29 IMAPClient = imapclient; # added 2021-10-28 + imdbpy = throw "imdbpy has been renamed to cinemagoer"; # added 2022-08-08 ipaddress = throw "ipaddress has been removed because it is no longer required since python 2.7."; # added 2022-05-30 influxgraph = throw "influxgraph has been removed because it is no longer maintained"; # added 2022-07-10 jupyter_client = jupyter-client; # added 2021-10-15 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 497940bfaa33..fb891e3566fb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1702,6 +1702,8 @@ in { ci-py = callPackage ../development/python-modules/ci-py { }; + cinemagoer = callPackage ../development/python-modules/cinemagoer { }; + circuit-webhook = callPackage ../development/python-modules/circuit-webhook { }; circuitbreaker = callPackage ../development/python-modules/circuitbreaker { }; @@ -4288,8 +4290,6 @@ in { imbalanced-learn = callPackage ../development/python-modules/imbalanced-learn { }; - imdbpy = callPackage ../development/python-modules/imdbpy { }; - img2pdf = callPackage ../development/python-modules/img2pdf { }; imgaug = callPackage ../development/python-modules/imgaug { }; From 748145d0828fc16c029ddc4fa7853a70213b865c Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Mon, 8 Aug 2022 17:02:01 -0300 Subject: [PATCH 2/2] hypnotix: rename imdbpy to cinemagoer --- pkgs/applications/video/hypnotix/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/video/hypnotix/default.nix b/pkgs/applications/video/hypnotix/default.nix index af6d9fe702c4..a2da839347f3 100644 --- a/pkgs/applications/video/hypnotix/default.nix +++ b/pkgs/applications/video/hypnotix/default.nix @@ -48,7 +48,7 @@ stdenv.mkDerivation rec { ]; pythonPath = with python3.pkgs; [ - imdbpy + cinemagoer pygobject3 requests setproctitle