-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
python313Packages.atopile: 0.2.69 -> 0.11.2 #393261
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
Changes from all commits
1d7c561
836c445
b2774cc
c63ad81
3d4984b
5000a3b
1c8f95a
7eea5b3
152e01c
384dc15
b5b2ed1
8a90e3c
fd281e2
d690766
ed2a0f8
2bc70e5
00b5480
2032eb4
833f9f9
7b399af
3cf87d3
93364bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,59 +2,75 @@ | |
| lib, | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
|
|
||
| cmake, | ||
| ninja, | ||
| # build-system | ||
| hatchling, | ||
| scikit-build-core, | ||
| hatch-vcs, | ||
| nanobind, | ||
| # deps | ||
| antlr4-python3-runtime, | ||
| attrs, | ||
| atopile-easyeda2kicad, | ||
| black, | ||
| case-converter, | ||
| cattrs, | ||
| click, | ||
| deepdiff, | ||
| easyeda2ato, | ||
| eseries, | ||
| fake-useragent, | ||
| fastapi, | ||
| cookiecutter, | ||
| dataclasses-json, | ||
| deprecated, | ||
| fastapi-github-oidc, | ||
| freetype-py, | ||
| gitpython, | ||
| igraph, | ||
| jinja2, | ||
| kicad-python, | ||
| kicadcliwrapper, | ||
| matplotlib, | ||
| mcp, | ||
| more-itertools, | ||
| natsort, | ||
| networkx, | ||
| pandas, | ||
| numpy, | ||
| ordered-set, | ||
| pathvalidate, | ||
| pint, | ||
| posthog, | ||
| psutil, | ||
| pydantic-settings, | ||
| pygls, | ||
| quart-cors, | ||
| quart-schema, | ||
| quart, | ||
| questionary, | ||
| requests, | ||
| rich, | ||
| ruamel-yaml, | ||
| schema, | ||
| scipy, | ||
| ruff, | ||
| semver, | ||
| toolz, | ||
| sexpdata, | ||
| shapely, | ||
| typer, | ||
| urllib3, | ||
| uvicorn, | ||
| watchfiles, | ||
| pyyaml, | ||
| zstd, | ||
| pythonOlder, | ||
|
|
||
| # tests | ||
| pytestCheckHook, | ||
| pytest-xdist, | ||
|
|
||
| pytest-benchmark, | ||
| pytest-timeout, | ||
| pytest-datafiles, | ||
| pytest-xdist, | ||
| hypothesis, | ||
| writableTmpDirAsHomeHook, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "atopile"; | ||
| version = "0.2.69"; | ||
| version = "0.11.2"; | ||
| pyproject = true; | ||
|
|
||
| disabled = pythonOlder "3.13"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "atopile"; | ||
| repo = "atopile"; | ||
| tag = "v${version}"; | ||
| hash = "sha256-mQYnaWch0lVzz1hV6WboYxBGe3ruw+mK2AwMx13DQJM="; | ||
| hash = "sha256-JczlQulHlViV9pg0uPXd9Boagp74VBdZ1UMDXh2c3DA="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
|
|
@@ -64,59 +80,142 @@ buildPythonPackage rec { | |
| nanobind | ||
| ]; | ||
|
|
||
| dontUseCmakeConfigure = true; # skip cmake configure invocation | ||
|
|
||
| nativeBuildInputs = [ | ||
| cmake | ||
| ninja | ||
| ]; | ||
|
|
||
| dependencies = [ | ||
| antlr4-python3-runtime | ||
| attrs | ||
| atopile-easyeda2kicad | ||
| black # used as a dependency | ||
| case-converter | ||
| cattrs | ||
| click | ||
| deepdiff | ||
| easyeda2ato | ||
| eseries | ||
| fake-useragent | ||
| fastapi | ||
| cookiecutter | ||
| dataclasses-json | ||
| deprecated | ||
| fastapi-github-oidc | ||
| freetype-py | ||
| gitpython | ||
| igraph | ||
| jinja2 | ||
| kicad-python | ||
| kicadcliwrapper | ||
| matplotlib | ||
| mcp | ||
| more-itertools | ||
| natsort | ||
| networkx | ||
| pandas | ||
| numpy | ||
| ordered-set | ||
| pathvalidate | ||
| pint | ||
| posthog | ||
| psutil | ||
| pydantic-settings | ||
| pygls | ||
| quart-cors | ||
| quart-schema | ||
| quart | ||
| questionary | ||
| requests | ||
| rich | ||
| ruamel-yaml | ||
| schema | ||
| scipy | ||
| ruff | ||
| semver | ||
| toolz | ||
| sexpdata | ||
| shapely | ||
| typer | ||
| urllib3 | ||
| uvicorn | ||
| watchfiles | ||
| pyyaml # required for ato | ||
| zstd | ||
| ]; | ||
|
|
||
| pythonRelaxDeps = [ "antlr4-python3-runtime" ]; | ||
| pythonRelaxDeps = [ | ||
| "posthog" | ||
| "zstd" | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ "atopile" ]; | ||
|
|
||
| nativeCheckInputs = [ | ||
| writableTmpDirAsHomeHook | ||
| pytestCheckHook | ||
| pytest-xdist | ||
| pytest-benchmark | ||
| pytest-datafiles | ||
| pytest-timeout | ||
| hypothesis | ||
| ]; | ||
|
|
||
| preCheck = '' | ||
| # do not report worker logs to filee | ||
| substituteInPlace test/conftest.py \ | ||
Sigmanificient marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --replace-fail "worker_id =" "worker_id = None #" | ||
|
|
||
| # unrecognized flags | ||
| substituteInPlace pyproject.toml \ | ||
| --replace-fail "--html=artifacts/test-report.html" "" \ | ||
| --replace-fail "--self-contained-html" "" | ||
| --replace-fail "--self-contained-html" "" \ | ||
| --replace-fail "--numprocesses=auto" "" \ | ||
|
|
||
| # Replace this function call that cause test to hang | ||
| substituteInPlace \ | ||
| test/cli/test_packages.py \ | ||
| test/library/test_names.py \ | ||
| test/test_examples.py \ | ||
| test/test_parse_utils.py \ | ||
| --replace-fail "_repo_root()" "Path('$(pwd)')" | ||
|
|
||
| # Fix crash due to empty list in fixture tests | ||
| substituteInPlace \ | ||
| test/test_examples.py \ | ||
| test/test_parse_utils.py \ | ||
| --replace-fail "p.stem" "p.stem if isinstance(p, Path) else p" | ||
| ''; | ||
|
|
||
| nativeCheckInputs = [ | ||
| pytestCheckHook | ||
| pytest-xdist | ||
| pytest-timeout | ||
| disabledTestPaths = [ | ||
| # timouts | ||
| "test/test_cli.py" | ||
| "test/cli/test_packages.py" | ||
| "test/end_to_end/test_net_naming.py" | ||
| "test/end_to_end/test_pcb_export.py" | ||
| "test/exporters/bom/test_bom.py" | ||
| "test/front_end/test_front_end_pick.py" | ||
| "test/libs/picker/test_pickers.py" | ||
| ]; | ||
|
|
||
| disabledTests = [ | ||
| # timeout | ||
| "test_build_error_logging" | ||
Sigmanificient marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "test_performance_mifs_bus_params" | ||
| "test_resistor" | ||
| "test_reserved_attrs" | ||
| # requires internet | ||
| "test_simple_pick" | ||
| "test_simple_negative_pick" | ||
| "test_jlcpcb_pick_resistor" | ||
| "test_jlcpcb_pick_capacitor" | ||
| "test_regression_rp2040_usb_diffpair_full" | ||
| "test_model_translations" | ||
| # type error | ||
| "test_alternate_trait_constructor_with_params" | ||
| "test_parameterised_trait_with_params" | ||
| "test_trait_alternate_constructor_precedence" | ||
| "test_trait_template_enum" | ||
| "test_trait_template_enum_invalid" | ||
| # failure | ||
| "test_solve_voltage_divider_complex" | ||
| ]; | ||
|
|
||
| # in order to use pytest marker, we need to use ppytestFlagsArray | ||
| # using pytestFlags causes `ERROR: file or directory not found: slow` | ||
| pytestFlagsArray = [ | ||
| "-m='not slow and not not_in_ci and not regression'" | ||
| "--timeout=10" # any test taking long, timouts with more than 60s | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did the comment say "timouts with more than 60s" but the flag say When working on PR #452102, nixpkgs-review tests run with nixpkgs-review-gha fails to build |
||
| "--benchmark-disable" | ||
| "--tb=line" | ||
| ]; | ||
|
|
||
| doCheck = true; | ||
|
|
||
| meta = { | ||
| description = "Design circuit boards with code"; | ||
| homepage = "https://aiopg.readthedocs.io/"; | ||
| homepage = "https://atopile.io"; | ||
| downloadPage = "https://github.com/atopile/atopile"; | ||
| changelog = "https://github.com/atopile/atopile/releases/tag/${src.rev}"; | ||
| license = with lib.licenses; [ mit ]; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| buildPythonPackage, | ||
| fetchFromGitHub, | ||
| hatchling, | ||
| hatch-vcs, | ||
| fastapi, | ||
| pyjwt, | ||
| httpx, | ||
| requests, | ||
| pytestCheckHook, | ||
| lib, | ||
| }: | ||
| buildPythonPackage rec { | ||
| pname = "fastapi-github-oidc"; | ||
| version = "0.3.0"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "atopile"; | ||
| repo = "fastapi-github-oidc"; | ||
| tag = version; | ||
| hash = "sha256-FS50++Hy9h0RFrSnc4PbXFPh/1OO0JOaFdIZwoXa86A="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| hatchling | ||
| hatch-vcs | ||
| ]; | ||
|
|
||
| dependencies = [ | ||
| fastapi | ||
| pyjwt | ||
| httpx | ||
| requests | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ | ||
| "github_oidc.client" | ||
| "github_oidc.server" | ||
| ]; | ||
|
|
||
| nativeCheckInputs = [ pytestCheckHook ]; | ||
|
|
||
| disabledTests = [ | ||
| "test_with_auth" # calls github api | ||
| ]; | ||
|
|
||
| meta = { | ||
| description = "FastAPI compatible middleware to authenticate Github OIDC Tokens"; | ||
| homepage = "https://github.com/atopile/fastapi-github-oidc"; | ||
| changelog = "https://github.com/atopile/fastapi-github-oidc/releases/tag/${src.tag}"; | ||
| license = with lib.licenses; [ mit ]; | ||
| maintainers = with lib.maintainers; [ sigmanificient ]; | ||
| }; | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.