-
-
Notifications
You must be signed in to change notification settings - Fork 19.6k
py-wacz: init at 0.5.0 #420437
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
Merged
Merged
py-wacz: init at 0.5.0 #420437
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
21200da
python3Packages.ezodf: init at 0.3.2
zhaofengli 13743dd
python3Packages.frictionless: init at 5.18.1
zhaofengli 728e634
python3Packages.py3amf: init at 0.8.11
zhaofengli b96dd66
cdxj-indexer: init at 1.4.6
zhaofengli 116c931
py-wacz: init at 0.5.0
zhaofengli 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
There are no files selected for viewing
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,57 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
| setuptools, | ||
| warcio, | ||
| surt, | ||
| py3amf, | ||
| multipart, | ||
| pytestCheckHook, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "cdxj-indexer"; | ||
| version = "1.4.6"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "webrecorder"; | ||
| repo = "cdxj-indexer"; | ||
| tag = "v${version}"; | ||
| hash = "sha256-E3b/IfjngyXhWvRYP9CkQGvBFeC8pAm4KxZA9MwOo4s="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| setuptools | ||
| ]; | ||
|
|
||
| dependencies = [ | ||
| warcio | ||
| surt | ||
| py3amf | ||
| multipart | ||
| ]; | ||
|
|
||
| pythonRemoveDeps = [ | ||
| # Transitive dependency that does not need to be pinned | ||
| # Proposed fix in <https://github.com/webrecorder/cdxj-indexer/pull/25> | ||
| "idna" | ||
| ]; | ||
|
|
||
| nativeCheckInputs = [ | ||
| pytestCheckHook | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ | ||
| "cdxj_indexer" | ||
| ]; | ||
|
|
||
| meta = { | ||
| description = "CDXJ Indexing of WARC/ARCs"; | ||
| homepage = "https://github.com/webrecorder/cdxj-indexer"; | ||
| license = lib.licenses.asl20; | ||
| maintainers = with lib.maintainers; [ zhaofengli ]; | ||
| mainProgram = "cdxj-indexer"; | ||
| }; | ||
| } | ||
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,48 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
| setuptools, | ||
| lxml, | ||
| unittestCheckHook, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "ezodf"; | ||
| version = "0.3.2"; | ||
| pyproject = true; | ||
|
zhaofengli marked this conversation as resolved.
Outdated
|
||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "T0ha"; | ||
| repo = "ezodf"; | ||
| tag = version; | ||
| hash = "sha256-d66CTj9CpCnMICqNdUP07M9elEfoxuPg8x1kxqgXTTE="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| setuptools | ||
| ]; | ||
|
|
||
| dependencies = [ | ||
| lxml | ||
| ]; | ||
|
|
||
| nativeCheckInputs = [ | ||
| unittestCheckHook | ||
| ]; | ||
|
|
||
| unittestFlags = [ | ||
| "tests" | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ | ||
| "ezodf" | ||
| ]; | ||
|
|
||
| meta = { | ||
| description = "Extract, add, modify, or delete document data in OpenDocument (ODF) files"; | ||
| homepage = "https://github.com/T0ha/ezodf"; | ||
| license = lib.licenses.mit; | ||
| maintainers = with lib.maintainers; [ zhaofengli ]; | ||
| }; | ||
| } | ||
215 changes: 215 additions & 0 deletions
215
pkgs/development/python-modules/frictionless/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,215 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
| hatchling, | ||
| attrs, | ||
| chardet, | ||
| humanize, | ||
| isodate, | ||
| jinja2, | ||
| jsonschema, | ||
| marko, | ||
| petl, | ||
| pydantic, | ||
| python-dateutil, | ||
| python-slugify, | ||
| pyyaml, | ||
| requests, | ||
| rfc3986, | ||
| simpleeval, | ||
| tabulate, | ||
| typer, | ||
| typing-extensions, | ||
| validators, | ||
|
|
||
| # Optional formats | ||
| boto3, | ||
| google-api-python-client, | ||
| datasette, | ||
| duckdb, | ||
| duckdb-engine, | ||
| sqlalchemy, | ||
| pygithub, | ||
| pyquery, | ||
| ijson, | ||
| jsonlines, | ||
| pymysql, | ||
| ezodf, | ||
| lxml, | ||
| pandas, | ||
| pyarrow, | ||
| fastparquet, | ||
| psycopg, | ||
| psycopg2, | ||
| visidata, | ||
| tatsu, | ||
|
|
||
| # Tests | ||
| pytestCheckHook, | ||
| pytest-cov, | ||
| pytest-dotenv, | ||
| pytest-lazy-fixtures, | ||
| pytest-mock, | ||
| pytest-timeout, | ||
| pytest-vcr, | ||
| moto, | ||
| requests-mock, | ||
|
|
||
| # Tests depending on excel | ||
| openpyxl, | ||
| xlrd, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "frictionless"; | ||
| version = "5.18.1"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "frictionlessdata"; | ||
| repo = "frictionless-py"; | ||
| tag = "v${version}"; | ||
| hash = "sha256-svspEHcEw994pEjnuzWf0FFaYeFZuqriK96yFAB6/gI="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| hatchling | ||
| ]; | ||
|
|
||
| dependencies = [ | ||
| attrs | ||
| chardet | ||
| humanize | ||
| isodate | ||
| jinja2 | ||
| jsonschema | ||
| marko | ||
| petl | ||
| pydantic | ||
| python-dateutil | ||
| python-slugify | ||
| pyyaml | ||
| requests | ||
| rfc3986 | ||
| simpleeval | ||
| tabulate | ||
| typer | ||
| typing-extensions | ||
| validators | ||
| ]; | ||
|
|
||
| optional-dependencies = { | ||
| # The commented-out formats require dependencies that have not been packaged | ||
| # They are intentionally left in for reference - Please do not remove them | ||
| aws = [ | ||
| boto3 | ||
| ]; | ||
| bigquery = [ | ||
| google-api-python-client | ||
| ]; | ||
| #ckan = [ | ||
| # frictionless-ckan-mapper # not packaged | ||
| #]; | ||
| datasette = [ | ||
| datasette | ||
| ]; | ||
| duckdb = [ | ||
| duckdb | ||
| duckdb-engine | ||
| sqlalchemy | ||
| ]; | ||
| #excel = [ | ||
| # openpyxl | ||
| # tableschema-to-template # not packaged | ||
| # xlrd | ||
| # xlwt | ||
| #]; | ||
| github = [ | ||
| pygithub | ||
| ]; | ||
| #gsheets = [ | ||
| # pygsheets # not packaged | ||
| #]; | ||
| html = [ | ||
| pyquery | ||
| ]; | ||
| json = [ | ||
| ijson | ||
| jsonlines | ||
| ]; | ||
| mysql = [ | ||
| pymysql | ||
| sqlalchemy | ||
| ]; | ||
| ods = [ | ||
| ezodf | ||
| lxml | ||
| ]; | ||
| pandas = [ | ||
| pandas | ||
| pyarrow | ||
| ]; | ||
| parquet = [ | ||
| fastparquet | ||
| ]; | ||
| postgresql = [ | ||
| psycopg | ||
| psycopg2 | ||
| sqlalchemy | ||
| ]; | ||
| #spss = [ | ||
| # savreaderwriter # not packaged | ||
| #]; | ||
| sql = [ | ||
| sqlalchemy | ||
| ]; | ||
| visidata = [ | ||
| # Not ideal: This is actually outside pythonPackages set and depends on whatever | ||
| # Python version the top-level python3Packages set refers to | ||
| visidata | ||
| ]; | ||
| wkt = [ | ||
| tatsu | ||
| ]; | ||
| #zenodo = [ | ||
| # pyzenodo3 # not packaged | ||
| #]; | ||
| }; | ||
|
|
||
| nativeCheckInputs = [ | ||
| pytestCheckHook | ||
| pytest-cov | ||
| pytest-dotenv | ||
| pytest-lazy-fixtures | ||
| pytest-mock | ||
| pytest-timeout | ||
| pytest-vcr | ||
| moto | ||
| requests-mock | ||
|
|
||
| # We do not have all packages for the `excel` format to fully function, | ||
| # but it's required for some of the tests. | ||
| openpyxl | ||
| xlrd | ||
| ] ++ lib.flatten (lib.attrValues optional-dependencies); | ||
|
|
||
| disabledTestPaths = [ | ||
| # Requires optional dependencies that have not been packaged (commented out above) | ||
| # The tests of other unavailable formats are auto-skipped | ||
| "frictionless/formats/excel" | ||
| "frictionless/formats/spss" | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ | ||
| "frictionless" | ||
| ]; | ||
|
|
||
| meta = { | ||
| description = "Data management framework for Python that provides functionality to describe, extract, validate, and transform tabular data"; | ||
| homepage = "https://github.com/frictionlessdata/frictionless-py"; | ||
| changelog = "https://github.com/frictionlessdata/frictionless-py/blob/${src.rev}/CHANGELOG.md"; | ||
| license = lib.licenses.mit; | ||
| maintainers = with lib.maintainers; [ zhaofengli ]; | ||
| }; | ||
| } |
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,40 @@ | ||
| { | ||
| lib, | ||
| buildPythonPackage, | ||
| setuptools, | ||
| fetchFromGitHub, | ||
| defusedxml, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "py3amf"; | ||
| version = "0.8.11"; | ||
| pyproject = true; | ||
|
zhaofengli marked this conversation as resolved.
Outdated
|
||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "StdCarrot"; | ||
| repo = "Py3AMF"; | ||
| tag = "v${version}"; | ||
| hash = "sha256-9zuHh5+ggIjv1LcjpBNHy2yh09KsFpxUdGrtKGm94Zg="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| setuptools | ||
| ]; | ||
|
|
||
| dependencies = [ | ||
| defusedxml | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ | ||
| "pyamf" | ||
| ]; | ||
|
|
||
| meta = { | ||
| description = "Action Message Format (AMF) support for Python 3"; | ||
| homepage = "https://github.com/StdCarrot/Py3AMF"; | ||
| changelog = "https://github.com/StdCarrot/Py3AMF/blob/${src.rev}/CHANGES.txt"; | ||
| license = lib.licenses.mit; | ||
| maintainers = with lib.maintainers; [ zhaofengli ]; | ||
| }; | ||
| } | ||
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.