diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/tvnamer/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/tvnamer/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/tools/misc/tvnamer/default.nix b/nixpkgs/pkgs/tools/misc/tvnamer/default.nix index 204914c280c6..459e3889efc6 100644 --- a/nixpkgs/pkgs/tools/misc/tvnamer/default.nix +++ b/nixpkgs/pkgs/tools/misc/tvnamer/default.nix @@ -1,19 +1,24 @@ { lib , python3 +, fetchPypi }: let python' = python3.override { - packageOverrides = self: super: rec { + packageOverrides = final: prev: rec { # tvdb_api v3.1.0 has a hard requirement on requests-cache < 0.6 - requests-cache = super.requests-cache.overridePythonAttrs (super: rec { + requests-cache = prev.requests-cache.overridePythonAttrs (oldAttrs: rec { version = "0.5.2"; - src = self.fetchPypi { - inherit (super) pname; + src = fetchPypi { + inherit (oldAttrs) pname; inherit version; sha256 = "sha256-gTAjJpaGBF+OAeIonMHn6a5asi3dHihJqQk6s6tycOs="; }; + nativeBuildInputs = with final; [ + setuptools + ]; + # too many changes have been made to requests-cache based on version 0.6 so # simply disable tests doCheck = false; @@ -28,7 +33,7 @@ pypkgs.buildPythonApplication rec { pname = "tvnamer"; version = "3.0.4"; - src = pypkgs.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "dc2ea8188df6ac56439343630466b874c57756dd0b2538dd8e7905048f425f04"; }; |