Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mnamer: 2.5.4 -> 2.5.5 #357983

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 32 additions & 11 deletions pkgs/by-name/mn/mnamer/package.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,52 @@
{ python3Packages, fetchFromGitHub, lib }:
{
python3Packages,
fetchFromGitHub,
fetchpatch,
lib,
}:

python3Packages.buildPythonApplication rec {
pname = "mnamer";
version = "2.5.4";
version = "2.5.5";
format = "pyproject";

src = fetchFromGitHub {
owner = "jkwill87";
repo = "mnamer";
rev = version;
sha256 = "sha256-fONQq/RboWHFuEFU7HP1ThUpSjOIlkg54c2WlMUKwuk=";
sha256 = "sha256-qQu5V1GOsbrR00HOrot6TTAkc3KRasBPDEU7ZojUBio=";
};

build-system = with python3Packages; [
setuptools
setuptools-scm
];

nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ];

propagatedBuildInputs = with python3Packages; [
appdirs
babelfish
guessit
requests
appdirs
teletype
requests-cache
guessit
teletype
];

patches = [
# requires specific old versions of dependencies which have been updated in nixpkgs
./remove_requirements.patch
pythonRelaxDeps = [
"guessit"
"requests-cache"
"setuptools-scm"
"typing-extensions"
];

# author reads a private property that changed between versions
./update_hack.patch
patches = [
# https://github.com/jkwill87/mnamer/pull/291
(fetchpatch {
name = "fix-cached-session-object-error";
url = "https://patch-diff.githubusercontent.com/raw/jkwill87/mnamer/pull/291.patch";
hash = "sha256-b0mD9lLE0cUy3kk6Y04MjJfBXSj8HDApmo4xoBINAwA=";
})
];

nativeCheckInputs = [ python3Packages.pytestCheckHook ];
Expand Down