-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
init Funkwhale dependencies #453976
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
Open
JuneStepp
wants to merge
8
commits into
NixOS:master
Choose a base branch
from
JuneStepp:funkwhale-dependencies
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
init Funkwhale dependencies #453976
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cb7e02a
python3Packages.lb-matching-tools: init at 2024.01.30.1
JuneStepp d19da1f
python3Packages.django-cache-memoize: init at 0.2.1
JuneStepp 52cd858
python3Packages.liblistenbrainz: init at 0.6.0
JuneStepp f962440
python3Packages.pluralizer: init at 2.0.0
JuneStepp b7fe457
python3Packages.requests-http-message-signatures: init at 0.3.0
JuneStepp bfb141c
python3Packages.troi: init at 2025.08.06.3
JuneStepp 46236d6
python3Packages.typesense: init at 1.1.1
JuneStepp 44f882c
python3Packages.python-ffmpeg: give ffmpeg access, run tests
JuneStepp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
pkgs/development/python-modules/django-cache-memoize/default.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
| setuptools, | ||
| django, | ||
| pytestCheckHook, | ||
| pytest-cov-stub, | ||
| pytest-django, | ||
| nix-update-script, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "django-cache-memoize"; | ||
| version = "0.2.1"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "peterbe"; | ||
| repo = "django-cache-memoize"; | ||
| # No tags. See <https://github.com/peterbe/django-cache-memoize/issues/60>. | ||
| rev = "9a0dc28315b9bd2848973d38b6f63a400a0e0526"; | ||
JuneStepp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| hash = "sha256-oORTN53s9GVHiY9tbx5FKb7ygkYUKWgPRJusdB0RfcA="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| setuptools | ||
| ]; | ||
|
|
||
| dependencies = [ | ||
| django | ||
| ]; | ||
|
|
||
| nativeCheckInputs = [ | ||
| pytestCheckHook | ||
| pytest-cov-stub | ||
| pytest-django | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ "cache_memoize" ]; | ||
|
|
||
| passthru.updateScript = nix-update-script { | ||
| extraArgs = [ "--version=branch" ]; | ||
| }; | ||
|
|
||
| meta = { | ||
| description = "Django utility for a memoization decorator that uses the Django cache framework"; | ||
| homepage = "https://github.com/peterbe/django-cache-memoize"; | ||
| changelog = "https://github.com/peterbe/django-cache-memoize/blob/${src.rev}/CHANGELOG.rst"; | ||
| license = lib.licenses.mpl20; | ||
| teams = [ lib.teams.ngi ]; | ||
| }; | ||
| } | ||
41 changes: 41 additions & 0 deletions
41
pkgs/development/python-modules/lb-matching-tools/default.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
| setuptools, | ||
| setuptools-scm, | ||
| regex, | ||
| pytestCheckHook, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "lb-matching-tools"; | ||
| version = "2024.01.30.1"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "metabrainz"; | ||
| repo = "listenbrainz-matching-tools"; | ||
| tag = "v${version}"; | ||
| hash = "sha256-RQ4X6DKigQsNxaAWXB1meATKP+ddMUgkoAIyX8iIisU="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| setuptools | ||
| setuptools-scm | ||
| ]; | ||
|
|
||
| dependencies = [ regex ]; | ||
|
|
||
| nativeCheckInputs = [ pytestCheckHook ]; | ||
|
|
||
| pythonImportsCheck = [ "lb_matching_tools" ]; | ||
|
|
||
| meta = { | ||
| description = "ListenBrainz tools for matching metadata to and from MusicBrainz"; | ||
| homepage = "https://github.com/metabrainz/listenbrainz-matching-tools"; | ||
| changelog = "https://github.com/metabrainz/listenbrainz-matching-tools/releases/tag/${src.tag}"; | ||
| license = lib.licenses.gpl2Plus; | ||
| teams = [ lib.teams.ngi ]; | ||
| }; | ||
| } |
45 changes: 45 additions & 0 deletions
45
pkgs/development/python-modules/liblistenbrainz/default.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
| setuptools, | ||
| setuptools-scm, | ||
| requests, | ||
| pytestCheckHook, | ||
| requests-mock, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "liblistenbrainz"; | ||
| version = "0.6.0"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "metabrainz"; | ||
| repo = "liblistenbrainz"; | ||
| tag = "v${version}"; | ||
| hash = "sha256-mUw+x9SEHrPocZRdtazqInMGLBDv1KUR5/mmfF3CbVg="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| setuptools | ||
| setuptools-scm | ||
| ]; | ||
|
|
||
| dependencies = [ requests ]; | ||
|
|
||
| nativeCheckInputs = [ | ||
| pytestCheckHook | ||
| requests-mock | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ "liblistenbrainz" ]; | ||
|
|
||
| meta = { | ||
| description = "Simple ListenBrainz client library for Python"; | ||
| homepage = "https://github.com/metabrainz/liblistenbrainz"; | ||
| changelog = "https://github.com/metabrainz/liblistenbrainz/releases/tag/${src.tag}"; | ||
| license = lib.licenses.gpl3Plus; | ||
| teams = [ lib.teams.ngi ]; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
| hatchling, | ||
| pytestCheckHook, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "pluralizer"; | ||
| version = "2.0.0"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "weixu365"; | ||
| repo = "pluralizer-py"; | ||
| tag = "v${version}"; | ||
| hash = "sha256-2m7E4cwAdmny/5R5FqaCzk8mu9so/ZCgNPBckTdIc/0="; | ||
| }; | ||
|
|
||
| build-system = [ hatchling ]; | ||
|
|
||
| nativeCheckInputs = [ pytestCheckHook ]; | ||
|
|
||
| pythonImportsCheck = [ "pluralizer" ]; | ||
|
|
||
| meta = { | ||
| description = "Singularize or pluralize a given word using a pre-defined list of rules"; | ||
| homepage = "https://github.com/weixu365/pluralizer-py"; | ||
| changelog = "https://github.com/weixu365/pluralizer-py/releases/tag/${src.tag}"; | ||
| license = lib.licenses.mit; | ||
| teams = [ lib.teams.ngi ]; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
pkgs/development/python-modules/requests-http-message-signatures/default.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitLab, | ||
| poetry-core, | ||
| cryptography, | ||
| requests, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "requests-http-message-signatures"; | ||
| version = "0.3.0"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitLab { | ||
| domain = "dev.funkwhale.audio"; | ||
| owner = "funkwhale"; | ||
| repo = "requests-http-message-signatures"; | ||
| tag = version; | ||
| hash = "sha256-1GObY+bF5wwgjDORUlO61bmIadK+EpZtyYGMgS9Bqzg="; | ||
| }; | ||
|
|
||
| build-system = [ poetry-core ]; | ||
|
|
||
| dependencies = [ | ||
| cryptography | ||
| requests | ||
| ]; | ||
|
|
||
| # Tests require network access. | ||
| doCheck = false; | ||
|
|
||
| pythonImportsCheck = [ "requests_http_message_signatures" ]; | ||
|
|
||
| meta = { | ||
| description = "Request authentication plugin implementing IETF HTTP Message Signatures"; | ||
| homepage = "https://dev.funkwhale.audio/funkwhale/requests-http-message-signatures"; | ||
| changelog = "https://dev.funkwhale.audio/funkwhale/requests-http-message-signatures/-/blob/${src.tag}/CHANGELOG.md"; | ||
| license = lib.licenses.asl20; | ||
| teams = [ lib.teams.ngi ]; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
| setuptools, | ||
| setuptools-scm, | ||
| click, | ||
| lb-matching-tools, | ||
| liblistenbrainz, | ||
| more-itertools, | ||
| mutagen, | ||
| peewee, | ||
| psycopg2-binary, | ||
| py-sonic, | ||
| python-dateutil, | ||
| regex, | ||
| requests, | ||
| scikit-learn, | ||
| spotipy, | ||
| tqdm, | ||
| ujson, | ||
| unidecode, | ||
| pytestCheckHook, | ||
| requests-mock, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "troi"; | ||
| version = "2025.08.06.3"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "metabrainz"; | ||
| repo = "troi-recommendation-playground"; | ||
| tag = "v${version}"; | ||
| hash = "sha256-qLnXaNb1Kon+XPJYCPe31EgXpukIfzTa+LADOzFjE9Q="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| setuptools | ||
| setuptools-scm | ||
| ]; | ||
|
|
||
| pythonRelaxDeps = [ "mutagen" ]; | ||
| pythonRemoveDeps = [ | ||
| # It's not used anywhere in the code. | ||
| # TODO: Remove in next update. See <https://github.com/metabrainz/troi-recommendation-playground/pull/179> | ||
| "countryinfo" | ||
| ]; | ||
|
|
||
| dependencies = [ | ||
| click | ||
| lb-matching-tools | ||
| liblistenbrainz | ||
| more-itertools | ||
| mutagen | ||
| peewee | ||
| psycopg2-binary | ||
| py-sonic | ||
| python-dateutil | ||
| regex | ||
| requests | ||
| scikit-learn | ||
| spotipy | ||
| tqdm | ||
| ujson | ||
| unidecode | ||
| ]; | ||
|
|
||
| optional-dependencies = { | ||
| # Not packaged yet. | ||
| # nmslib = [ "nmslib-metabrainz" ]; | ||
| }; | ||
|
|
||
| nativeCheckInputs = [ | ||
| pytestCheckHook | ||
| requests-mock | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ "troi" ]; | ||
|
|
||
| meta = { | ||
| description = "ListenBrainz' empathic music recommendation/playlisting engine"; | ||
| homepage = "https://github.com/metabrainz/troi-recommendation-playground"; | ||
| changelog = "https://github.com/metabrainz/troi-recommendation-playground/releases/tag/${src.tag}"; | ||
| license = lib.licenses.gpl2Only; | ||
| teams = [ lib.teams.ngi ]; | ||
| }; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.