gerd.wger: init
This commit is contained in:
parent
80ef4fabc8
commit
2f2993ac16
16 changed files with 733 additions and 0 deletions
55
machines/gerd/services/wger/wgerpkg/openfoodfacts.nix
Normal file
55
machines/gerd/services/wger/wgerpkg/openfoodfacts.nix
Normal file
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
pydantic,
|
||||
requests,
|
||||
tqdm,
|
||||
pillow,
|
||||
redis,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openfoodfacts-python";
|
||||
version = "2.2.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openfoodfacts";
|
||||
repo = "openfoodfacts-python";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-aG+zbFr7lhh5OCdPe7h2XJSwok7sdrnpsEBzPgJ6Bas=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
pydantic
|
||||
requests
|
||||
tqdm
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
Pillow = [
|
||||
pillow
|
||||
];
|
||||
redis = [
|
||||
redis
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"openfoodfacts"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python package for Open Food Facts";
|
||||
homepage = "https://github.com/openfoodfacts/openfoodfacts-python";
|
||||
changelog = "https://github.com/openfoodfacts/openfoodfacts-python/blob/${src.rev}/CHANGELOG.md";
|
||||
license = with lib.licenses; [ mit asl20 ];
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue