gphotos-sync: 3.04 -> 3.1.2
This commit is contained in:
parent
29639f61d8
commit
7ecb6dffd2
1 changed files with 13 additions and 26 deletions
|
@ -1,27 +1,13 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, pkgs
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, python3
|
, python3
|
||||||
, ffmpeg
|
, ffmpeg
|
||||||
}:
|
}:
|
||||||
let
|
python3.pkgs.buildPythonApplication rec {
|
||||||
py = python3.override {
|
|
||||||
packageOverrides = self: super: {
|
|
||||||
google-auth-oauthlib = super.google-auth-oauthlib.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "0.5.2b1";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "gilesknap";
|
|
||||||
repo = "google-auth-library-python-oauthlib";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-o4Jakm/JgLszumrSoTTnU+nc79Ei70abjpmn614qGyc=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
py.pkgs.buildPythonApplication rec {
|
|
||||||
pname = "gphotos-sync";
|
pname = "gphotos-sync";
|
||||||
version = "3.04";
|
version = "3.1.2";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
@ -30,36 +16,37 @@ py.pkgs.buildPythonApplication rec {
|
||||||
owner = "gilesknap";
|
owner = "gilesknap";
|
||||||
repo = "gphotos-sync";
|
repo = "gphotos-sync";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0mnlnqmlh3n1b6fjwpx2byl1z41vgghjb95598kz5gvdi95iirrs";
|
hash = "sha256-lLw450Rk7tIENFTZWHoinkhv3VtctDv18NKxhox+NgI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./skip-network-tests.patch
|
./skip-network-tests.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with py.pkgs; [
|
nativeBuildInputs = [ python3.pkgs.pythonRelaxDepsHook ];
|
||||||
|
pythonRelaxDeps = [
|
||||||
|
"psutil"
|
||||||
|
"exif"
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
appdirs
|
appdirs
|
||||||
attrs
|
attrs
|
||||||
exif
|
exif
|
||||||
google-auth-oauthlib
|
google-auth-oauthlib
|
||||||
psutil
|
psutil
|
||||||
pyyaml
|
pyyaml
|
||||||
|
psutil
|
||||||
requests-oauthlib
|
requests-oauthlib
|
||||||
types-pyyaml
|
types-pyyaml
|
||||||
types-requests
|
types-requests
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# this is a patched release that we include via packageOverrides above
|
|
||||||
substituteInPlace setup.cfg \
|
|
||||||
--replace " @ https://github.com/gilesknap/google-auth-library-python-oauthlib/archive/refs/tags/v0.5.2b1.zip" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
ffmpeg
|
ffmpeg
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = with py.pkgs; [
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
mock
|
mock
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
|
|
Loading…
Reference in a new issue