mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
immich.machine-learning: drop packageOverrides argument
There is no need for it and it cannot be used to override the machine learning component used by the immich package.
This commit is contained in:
parent
5620491106
commit
7c65974676
@ -4,33 +4,28 @@
|
|||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
immich,
|
immich,
|
||||||
python3,
|
python3,
|
||||||
# Override Python packages using
|
|
||||||
# self: super: { pkg = super.pkg.overridePythonAttrs (oldAttrs: { ... }); }
|
|
||||||
# Applied after defaultOverrides
|
|
||||||
packageOverrides ? self: super: { },
|
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
defaultOverrides = self: super: {
|
|
||||||
pydantic = super.pydantic_1;
|
|
||||||
|
|
||||||
versioningit = super.versioningit.overridePythonAttrs (_: {
|
|
||||||
doCheck = false;
|
|
||||||
});
|
|
||||||
|
|
||||||
albumentations = super.albumentations.overridePythonAttrs (_: rec {
|
|
||||||
version = "1.4.3";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "albumentations-team";
|
|
||||||
repo = "albumentations";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-JIBwjYaUP4Sc1bVM/zlj45cz9OWpb/LOBsIqk1m+sQA=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
python = python3.override {
|
python = python3.override {
|
||||||
self = python;
|
self = python;
|
||||||
packageOverrides = lib.composeExtensions defaultOverrides packageOverrides;
|
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
pydantic = super.pydantic_1;
|
||||||
|
|
||||||
|
versioningit = super.versioningit.overridePythonAttrs (_: {
|
||||||
|
doCheck = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
albumentations = super.albumentations.overridePythonAttrs (_: rec {
|
||||||
|
version = "1.4.3";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "albumentations-team";
|
||||||
|
repo = "albumentations";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-JIBwjYaUP4Sc1bVM/zlj45cz9OWpb/LOBsIqk1m+sQA=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
python.pkgs.buildPythonApplication {
|
python.pkgs.buildPythonApplication {
|
||||||
|
Loading…
Reference in New Issue
Block a user